From 93a31a7b6b428f92ac9061d05c55c2004bbb5037 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 30 Sep 2007 13:37:05 +0000 Subject: [PATCH] Removed all the unneeded hard coded strings from the Italian fan translation of IHNM, added the hard coded strings of the Spanish version of IHNM svn-id: r29146 --- engines/saga/itedata.cpp | 50 ++++++++++++++++++++++++++++------------ engines/saga/saga.cpp | 19 +++++++++++---- 2 files changed, 49 insertions(+), 20 deletions(-) diff --git a/engines/saga/itedata.cpp b/engines/saga/itedata.cpp index ca4ff616067..4cbbac7feee 100644 --- a/engines/saga/itedata.cpp +++ b/engines/saga/itedata.cpp @@ -376,25 +376,45 @@ const char *ITEinterfaceTextStrings[][52] = { "Text zeigen", "Wie lautet die Antwort?" }, + // Spanish IHNM + { + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, "Salir del Programa?", + "Load Successful!", "Introduzca Nombre Partida", "Dar %s a %s", "Usar %s con %s", + "[New Save Game]", + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + }, // Italian fan translation of IHNM { - "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", "Uscire?", + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, "Uscire?", "Load Successful!", "Nome del salvataggio", "Dai %s a %s", "Usa %s con %s", "[New Save Game]", - "I can't pick that up.", - "I see nothing special about it.", - "There's no place to open it.", - "There's no opening to close.", - "I don't know how to do that.", - "Show Dialog", - "What is Rif's reply?" + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL }, }; diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index df13f36f0a0..4cd0c1a3814 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -391,11 +391,20 @@ const char *SagaEngine::getTextString(int textStringId) { const char *string; int lang = 0; - if (getLanguage() == Common::DE_DEU) - lang = 1; - - if (getLanguage() == Common::IT_ITA) - lang = 2; + switch (getLanguage()) { + case Common::DE_DEU: + lang = 1; + break; + case Common::ES_ESP: + lang = 2; + break; + case Common::IT_ITA: + lang = 3; + break; + default: + lang = 0; + break; + } string = ITEinterfaceTextStrings[lang][textStringId]; if (!string)