added support for nonenglish the dig - for gui this time. now is completed :)
svn-id: r4960
This commit is contained in:
parent
c61b824942
commit
bc81fc7aa1
2 changed files with 9 additions and 0 deletions
|
@ -935,6 +935,11 @@ const char *Gui::queryString(int stringno, int id)
|
||||||
|
|
||||||
result = (char *)_s->getStringAddress(string);
|
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 (!result) { // Gracelessly degrade to english :)
|
||||||
if (_s->_features & GF_AFTER_V6)
|
if (_s->_features & GF_AFTER_V6)
|
||||||
return string_map_table_v6[stringno - 1].string;
|
return string_map_table_v6[stringno - 1].string;
|
||||||
|
|
|
@ -280,6 +280,10 @@ const char *NewGui::queryResString(int stringno)
|
||||||
string = string_map_table_v5[stringno - 1].num;
|
string = string_map_table_v5[stringno - 1].num;
|
||||||
|
|
||||||
result = (char *)_s->getStringAddress(string);
|
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 (!result) { // Gracelessly degrade to english :)
|
||||||
if (_s->_features & GF_AFTER_V6)
|
if (_s->_features & GF_AFTER_V6)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue