From: BlockMen Date: Sun, 18 Aug 2013 12:36:38 +0000 (+0200) Subject: Fix gettext for tabs (windows) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=deaa8dc2874871a4be1c706edbac6083c81d666b;p=zefram%2Fminetest%2Fminetest_engine.git Fix gettext for tabs (windows) --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 1da923cd..02b114f4 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); }