aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/saga.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-09-30 13:37:05 +0000
committerFilippos Karapetis2007-09-30 13:37:05 +0000
commit93a31a7b6b428f92ac9061d05c55c2004bbb5037 (patch)
tree6d3a4bc403d186f37181b928f60c534f3f74e0b1 /engines/saga/saga.cpp
parentf002fcf98af5942563112008c180fcbb183c20a2 (diff)
downloadscummvm-rg350-93a31a7b6b428f92ac9061d05c55c2004bbb5037.tar.gz
scummvm-rg350-93a31a7b6b428f92ac9061d05c55c2004bbb5037.tar.bz2
scummvm-rg350-93a31a7b6b428f92ac9061d05c55c2004bbb5037.zip
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
Diffstat (limited to 'engines/saga/saga.cpp')
-rw-r--r--engines/saga/saga.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp
index df13f36f0a..4cd0c1a381 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)