From 817180bd55dcadc81c0fc9753ba9bac573199dc9 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 31 Jul 2011 09:03:19 +0200 Subject: [PATCH] Introduce wgettext All usages of gettext() are converted to wchars, so let's factor this into a single inline. --- src/gettext.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gettext.h b/src/gettext.h index ff3a0f8cb..f2cb8e471 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;