diff options
author | Max Horn | 2003-05-25 18:56:20 +0000 |
---|---|---|
committer | Max Horn | 2003-05-25 18:56:20 +0000 |
commit | 30d9dde76cc76df58b63be12c299e0ab0738c419 (patch) | |
tree | 3a110ccf7ba3aab36eb3568cf9cc8d7f6e59912e /scumm/script_v2.cpp | |
parent | 0a7d73d15b370b1a880a693daa955948bcbc190c (diff) | |
download | scummvm-rg350-30d9dde76cc76df58b63be12c299e0ab0738c419.tar.gz scummvm-rg350-30d9dde76cc76df58b63be12c299e0ab0738c419.tar.bz2 scummvm-rg350-30d9dde76cc76df58b63be12c299e0ab0738c419.zip |
preparations for multi-language V2 supports
svn-id: r7966
Diffstat (limited to 'scumm/script_v2.cpp')
-rw-r--r-- | scumm/script_v2.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index feb5b05dd3..5f33fbb6e7 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -934,12 +934,24 @@ void Scumm_v2::o2_drawSentence() { } } - if (0 < _scummVars[29] && _scummVars[29] <= 4) { + if (0 < VAR(VAR_SENTENCE_PREPOSITION) && VAR(VAR_SENTENCE_PREPOSITION) <= 4) { // FIXME: Are these stored somewhere in the data? If not, we have to provide // localized versions for all the languages MM/Zak are available in. Note // that we already will have to do that for the fonts anyway. - const char *words[] = { " ", " in", " with", " on", " to" }; - strcat(sentence, words[_scummVars[29]]); + // + // The order here matches the one defined in gameDetector.h + const char *prepositions[][5] = { + { " ", " in", " with", " on", " to" }, // English + { " ", " mit", " mit", " mit", " zu" }, // German + { " ", " dans", " avec", " sur", " <" }, // French + { " ", " in", " with", " on", " to" }, // Italian + { " ", " in", " with", " on", " to" }, // Portugese + { " ", " in", " with", " on", " to" }, // Spanish + { " ", " in", " with", " on", " to" }, // Japanese + { " ", " in", " with", " on", " to" }, // Chinese + { " ", " in", " with", " on", " to" } // Korean + }; + strcat(sentence, prepositions[0][VAR(VAR_SENTENCE_PREPOSITION)]); } if (VAR(VAR_SENTENCE_OBJECT2) > 0) { |