1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix formspec label issues in win builds (MSVC)

This commit is contained in:
BlockMen 2013-08-03 17:57:51 +02:00 committed by PilzAdam
parent 2af5864534
commit be4670fecf
2 changed files with 39 additions and 61 deletions

View file

@ -83,5 +83,12 @@ inline void changeCtype(const char *l)
else
infostream<<"locale has been set to:"<<ret<<std::endl;*/
}
inline std::wstring wstrgettext(std::string text) {
wchar_t* wlabel = wgettext(text.c_str());
std::wstring out = (std::wstring)wlabel;
delete[] wlabel;
return out;
}
#define GETTEXT_HEADER
#endif