From 30d9dde76cc76df58b63be12c299e0ab0738c419 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 25 May 2003 18:56:20 +0000 Subject: preparations for multi-language V2 supports svn-id: r7966 --- scumm/script_v2.cpp | 18 +++++++++++++++--- 1 file 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) { -- cgit v1.2.3