diff options
author | antoniou79 | 2019-01-02 23:06:44 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-01-06 17:12:02 +0100 |
commit | 84304d545b8d5273c4241a20a1257e60c0dcfded (patch) | |
tree | 4bbcf5286eb5e1fa29b5e0ee57f69c31017d5271 | |
parent | 178a48d1ffb3bf2775d19e8d2cc02eaa86af8555 (diff) | |
download | scummvm-rg350-84304d545b8d5273c4241a20a1257e60c0dcfded.tar.gz scummvm-rg350-84304d545b8d5273c4241a20a1257e60c0dcfded.tar.bz2 scummvm-rg350-84304d545b8d5273c4241a20a1257e60c0dcfded.zip |
BLADERUNNER: Add localized text for Subtitles KIA option
-rw-r--r-- | engines/bladerunner/ui/kia_section_settings.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/engines/bladerunner/ui/kia_section_settings.cpp b/engines/bladerunner/ui/kia_section_settings.cpp index 1de9bdf180..294571262f 100644 --- a/engines/bladerunner/ui/kia_section_settings.cpp +++ b/engines/bladerunner/ui/kia_section_settings.cpp @@ -122,8 +122,29 @@ void KIASectionSettings::draw(Graphics::Surface &surface) { const char *textDark = _vm->_textOptions->getText(14); const char *textLight = _vm->_textOptions->getText(15); const char *textDesignersCut = _vm->_textOptions->getText(18); + // Allow this to be loading as an extra text item in the resource for text options - const char *textSubtitles = strcmp(_vm->_textOptions->getText(42), "") == 0? "Subtitles" : _vm->_textOptions->getText(42); // +1 to the max of original index of textOptions which is 41 + const char *subtitlesTranslation = "Subtitles"; + if (_vm->_languageCode == "E") { + subtitlesTranslation = "Subtitles"; // EN_ANY + } + else if (_vm->_languageCode == "G") { + subtitlesTranslation = "Untertitel"; // DE_DEU + } + else if (_vm->_languageCode == "F") { + subtitlesTranslation = "Sous-titres"; // FR_FRA + } + else if (_vm->_languageCode == "I") { + subtitlesTranslation = "Sottotitoli"; // IT_ITA + } + else if (_vm->_languageCode == "R") { + subtitlesTranslation = "Subtitry"; // RU_RUS + } + else if (_vm->_languageCode == "S") { + subtitlesTranslation = "Subtitulos"; // ES_ESP + } + + const char *textSubtitles = strcmp(_vm->_textOptions->getText(42), "") == 0? subtitlesTranslation : _vm->_textOptions->getText(42); // +1 to the max of original index of textOptions which is 41 int posConversationChoices = 320 - _vm->_mainFont->getTextWidth(textConversationChoices) / 2; int posMusic = 320 - _vm->_mainFont->getTextWidth(textMusic) / 2; |