mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 08:17:40 +00:00
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
@ -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…
Reference in New Issue
Block a user