added support for nonenglish the dig - for gui this time. now is completed :)

svn-id: r4960
This commit is contained in:
Paweł Kołodziejski 2002-09-17 16:12:16 +00:00
parent c61b824942
commit bc81fc7aa1
2 changed files with 9 additions and 0 deletions

View File

@ -935,6 +935,11 @@ const char *Gui::queryString(int stringno, int id)
result = (char *)_s->getStringAddress(string);
if (result && *result == '/') {
_s->translateText((char*)result, (char*)&_s->transText);
strcpy((char*)result, (char*)&_s->transText);
}
if (!result) { // Gracelessly degrade to english :)
if (_s->_features & GF_AFTER_V6)
return string_map_table_v6[stringno - 1].string;

View File

@ -280,6 +280,10 @@ const char *NewGui::queryResString(int stringno)
string = string_map_table_v5[stringno - 1].num;
result = (char *)_s->getStringAddress(string);
if (result && *result == '/') {
_s->translateText((char*)result, (char*)&_s->transText);
strcpy((char*)result, (char*)&_s->transText);
}
if (!result) { // Gracelessly degrade to english :)
if (_s->_features & GF_AFTER_V6)