### Utilities
* `minetest.get_current_modname()`: returns the currently loading mod's name, when we are loading a mod
+* `minetest.get_language()`: returns the currently set gettext language.
* `minetest.get_version()`: returns a table containing components of the
engine version. Components:
* `project`: Name of the project, eg, "Minetest"
return 1;
}
+int ModApiClient::l_get_language(lua_State *L)
+{
+ char *locale = setlocale(LC_ALL, "");
+ lua_pushstring(L, locale);
+ return 1;
+}
+
int ModApiClient::l_get_wielded_item(lua_State *L)
{
Client *client = getClient(L);
API_FCT(take_screenshot);
API_FCT(get_privilege_list);
API_FCT(get_builtin_path);
+ API_FCT(get_language);
}
// get_node(pos)
static int l_get_node_or_nil(lua_State *L);
+ static int l_get_language(lua_State *L);
+
// get_wielded_item()
static int l_get_wielded_item(lua_State *L);