From bc81fc7aa13a8bc71cfb8f8046385c71a411814f Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Tue, 17 Sep 2002 16:12:16 +0000 Subject: added support for nonenglish the dig - for gui this time. now is completed :) svn-id: r4960 --- gui/gui.cpp | 5 +++++ gui/newgui.cpp | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'gui') 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) -- cgit v1.2.3