diff options
-rw-r--r-- | gui/gui.cpp | 5 | ||||
-rw-r--r-- | gui/newgui.cpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gui/gui.cpp b/gui/gui.cpp index 1eee1e8021..8b152be4aa 100644 --- a/gui/gui.cpp +++ b/gui/gui.cpp @@ -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; diff --git a/gui/newgui.cpp b/gui/newgui.cpp index c3f8dbaf03..9da918525e 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -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) |