forked from Mirrorlandia_minetest/minetest
Fix umlauts/special character issue in lua gettext
This commit is contained in:
@ -979,9 +979,8 @@ int ModApiMainMenu::l_download_file(lua_State *L)
|
||||
/******************************************************************************/
|
||||
int ModApiMainMenu::l_gettext(lua_State *L)
|
||||
{
|
||||
const char* str = luaL_checkstring(L, 1);
|
||||
str = gettext(str);
|
||||
lua_pushstring(L, str);
|
||||
std::wstring wtext = wstrgettext((std::string) luaL_checkstring(L, 1));
|
||||
lua_pushstring(L, wide_to_narrow(wtext).c_str());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user