diff options
author | BlockMen <nmuelll@web.de> | 2013-08-18 14:36:38 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-08-19 15:59:09 +0200 |
commit | deaa8dc2874871a4be1c706edbac6083c81d666b (patch) | |
tree | 9d77290e4c00bb829135acf9927e32248448b4f8 | |
parent | ade70fe4b92202065c17d04f21415848b2c6d419 (diff) | |
download | minetest-deaa8dc2874871a4be1c706edbac6083c81d666b.tar.gz minetest-deaa8dc2874871a4be1c706edbac6083c81d666b.tar.bz2 minetest-deaa8dc2874871a4be1c706edbac6083c81d666b.zip |
Fix gettext for tabs (windows)
-rw-r--r-- | src/guiFormSpecMenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 1da923cd1..02b114f43 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -1253,7 +1253,8 @@ void GUIFormSpecMenu::parseTabHeader(parserData* data,std::string element) { for (unsigned int i=0; i< buttons.size(); i++) { wchar_t* wbutton = 0; - wbutton = (wchar_t*) narrow_to_wide(buttons[i].c_str()).c_str(); + std::wstring wlabel = narrow_to_wide(buttons[i]); //Needed for displaying text on windows + wbutton = (wchar_t*) wlabel.c_str(); e->addTab(wbutton,-1); } |