From: Giuseppe Bilotta Date: Sun, 31 Jul 2011 07:03:19 +0000 (+0200) Subject: Introduce wgettext X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=817180bd55dcadc81c0fc9753ba9bac573199dc9;p=zefram%2Fminetest%2Fminetest_engine.git Introduce wgettext All usages of gettext() are converted to wchars, so let's factor this into a single inline. --- diff --git a/src/gettext.h b/src/gettext.h index ff3a0f8c..f2cb8e47 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -30,6 +30,11 @@ inline wchar_t* chartowchar_t(const char *str) return nstr; } +inline wchar_t* wgettext(const char *str) +{ + return chartowchar_t(gettext(str)); +} + inline void changeCtype(const char *l) { char *ret = NULL;