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:
parent
2af5864534
commit
be4670fecf
2 changed files with 39 additions and 61 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue