]> git.lizzy.rs Git - minetest.git/blobdiff - src/gettext.h
Clean up gettext initialization
[minetest.git] / src / gettext.h
index 8235efa8ac0b3ef7f998d7dd364860610810060c..0170d1c456c621797f984e2e870a7f7b74843a27 100644 (file)
@@ -34,18 +34,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #ifdef _MSC_VER
 void init_gettext(const char *path, const std::string &configured_language,
-               int argc, char** argv);
+               int argc, const char *argv[]);
 #else
 void init_gettext(const char *path, const std::string &configured_language);
 #endif
 
-extern wchar_t *narrow_to_wide_c(const char *str);
+extern wchar_t *utf8_to_wide_c(const char *str);
 
 // You must free the returned string!
 // The returned string is allocated using new
 inline const wchar_t *wgettext(const char *str)
 {
-       return narrow_to_wide_c(gettext(str));
+       return utf8_to_wide_c(gettext(str));
 }
 
 inline std::wstring wstrgettext(const std::string &text)