label[]: Fix cut-off translated text
authorSmallJoker <mk939@ymail.com>
Sat, 7 Sep 2019 09:15:12 +0000 (11:15 +0200)
committerSmallJoker <mk939@ymail.com>
Sat, 7 Sep 2019 09:15:12 +0000 (11:15 +0200)
src/gui/guiFormSpecMenu.cpp

index c0fa2470b64237137112fa6c6e31cd6ecbf3af66..e02abf018a422953b579bbb6e42499d2ccf5a6b3 100644 (file)
@@ -1403,7 +1403,8 @@ void GUIFormSpecMenu::parseLabel(parserData* data, const std::string &element)
                std::vector<std::string> lines = split(text, '\n');
 
                for (unsigned int i = 0; i != lines.size(); i++) {
-                       std::wstring wlabel = utf8_to_wide(unescape_string(lines[i]));
+                       std::wstring wlabel = unescape_translate(unescape_string(
+                               utf8_to_wide(lines[i])));
 
                        core::rect<s32> rect;