From: SmallJoker Date: Sat, 7 Sep 2019 09:15:12 +0000 (+0200) Subject: label[]: Fix cut-off translated text X-Git-Tag: 5.1.0~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2c9edef;p=oweals%2Fminetest.git label[]: Fix cut-off translated text --- diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index c0fa2470b..e02abf018 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -1403,7 +1403,8 @@ void GUIFormSpecMenu::parseLabel(parserData* data, const std::string &element) std::vector 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 rect;