aboutsummaryrefslogtreecommitdiff
path: root/saga/saga.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-01-14 01:17:34 +0000
committerEugene Sandulenko2005-01-14 01:17:34 +0000
commitccacf6f82e5c5e112ef165d45233359d8a654407 (patch)
tree2df9f49bb5f44a6e0d01a6cfa56bf68bbfc317ee /saga/saga.cpp
parent211ec4c32a779ab6a234a64e33eaedd3c64b9822 (diff)
downloadscummvm-rg350-ccacf6f82e5c5e112ef165d45233359d8a654407.tar.gz
scummvm-rg350-ccacf6f82e5c5e112ef165d45233359d8a654407.tar.bz2
scummvm-rg350-ccacf6f82e5c5e112ef165d45233359d8a654407.zip
o Added support for German ITE. There are also Puzzle-related messages
hardcoded, but I'll save that for later :) o Eliminated all leftovers of previous language loader. If you'll spot another one, just remove it silently. svn-id: r16556
Diffstat (limited to 'saga/saga.cpp')
-rw-r--r--saga/saga.cpp66
1 files changed, 25 insertions, 41 deletions
diff --git a/saga/saga.cpp b/saga/saga.cpp
index bd7a68db4b..4b380fe72b 100644
--- a/saga/saga.cpp
+++ b/saga/saga.cpp
@@ -60,46 +60,28 @@ static const GameSettings saga_games[] = {
{0, 0, 0}
};
-static const char *englishTextStrings[] = {
- "Walk to",
- "Look At",
- "Pick Up",
- "Talk to",
- "Open",
- "Close",
- "Use",
- "Give",
- "Options",
- "Test",
- "Demo",
- "Help",
- "Quit Game",
- "Fast",
- "Slow",
- "On",
- "Off",
- "Continue Playing",
- "Load",
- "Save",
- "Game Options",
- "Reading Speed",
- "Music",
- "Sound",
- "Cancel",
- "Quit",
- "OK",
- "Mid",
- "Click",
- "10%",
- "20%",
- "30%",
- "40%",
- "50%",
- "60%",
- "70%",
- "80%",
- "90%",
- "Max"
+static const char *interfaceTextStrings[][39] = {
+ {
+ "Walk to", "Look At", "Pick Up", "Talk to", "Open",
+ "Close", "Use", "Give", "Options", "Test",
+ "Demo", "Help", "Quit Game", "Fast", "Slow",
+ "On", "Off", "Continue Playing", "Load", "Save",
+ "Game Options", "Reading Speed", "Music", "Sound", "Cancel",
+ "Quit", "OK", "Mid", "Click",
+ "10%", "20%", "30%", "40%", "50%",
+ "60%", "70%", "80%", "90%", "Max"
+ },
+ // German
+ {
+ "Gehe zu", "Schau an", "Nimm", "Rede mit", "\231ffne",
+ "Schlie$e", "Benutze", "Gib", "Optionen", "Test",
+ "Demo", "Hilfe", "Spiel beenden", "S", "L",
+ "An", "Aus", "Weiterspielen", "Laden", "Sichern",
+ "Spieleoptionen", "Lesegeschw.", "Musik", "Sound", "Abbr.",
+ "Beenden", "OK", "M", "Klick",
+ "10%", "20%", "30%", "40%", "50%",
+ "60%", "70%", "80%", "90%", "Max"
+ }
};
GameList Engine_SAGA_gameList() {
@@ -377,7 +359,9 @@ const char *SagaEngine::getObjectName(uint16 objectId) {
const char *SagaEngine::getTextString(int textStringId) {
- return englishTextStrings[textStringId]; //TODO: i18n
+ int lang = _vm->getFeatures() & GF_LANG_DE ? 1 : 0;
+
+ return interfaceTextStrings[lang][textStringId];
}
} // End of namespace Saga