mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Get rid of wgettext
This commit is contained in:
parent
35929d27e3
commit
67068cfaf4
13 changed files with 116 additions and 191 deletions
|
@ -202,7 +202,7 @@ int ModApiClient::l_disconnect(lua_State *L)
|
|||
// gettext(text)
|
||||
int ModApiClient::l_gettext(lua_State *L)
|
||||
{
|
||||
std::string text = strgettext(std::string(luaL_checkstring(L, 1)));
|
||||
std::string text = strgettext(luaL_checkstring(L, 1));
|
||||
lua_pushstring(L, text.c_str());
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue