X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgettext.h;h=0e6ee0fd5f779965a1dc7d10caeb3f214c880284;hb=fadf248892eae825b57d283032594ed924d8dbea;hp=ff3a0f8cb7a5c52e8a7fe3565f5a0f6d6bd10059;hpb=54de4afd75ba7102925484fd5ed1d6fba3df46f6;p=oweals%2Fminetest.git diff --git a/src/gettext.h b/src/gettext.h index ff3a0f8cb..0e6ee0fd5 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -1,5 +1,6 @@ #ifndef GETTEXT_HEADER #include "config.h" // for USE_GETTEXT +#include #if USE_GETTEXT #include @@ -30,6 +31,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;