diff options
author | SmallJoker <mk939@ymail.com> | 2019-09-07 11:15:12 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2019-09-07 11:15:12 +0200 |
commit | 2c9edefde3d941b1efa5c93a087814d6bc3509e6 (patch) | |
tree | e3225277c49fd82f6d3ab36fa17b4700c60d8491 /src | |
parent | ea9b241c13e9982acb993e616fa1db685ffba5cb (diff) | |
download | minetest-2c9edefde3d941b1efa5c93a087814d6bc3509e6.tar.gz minetest-2c9edefde3d941b1efa5c93a087814d6bc3509e6.tar.bz2 minetest-2c9edefde3d941b1efa5c93a087814d6bc3509e6.zip |
label[]: Fix cut-off translated text
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<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; |