Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Introduce wgettext

All usages of gettext() are converted to wchars, so let's factor this
into a single inline.
  • Loading branch information...
commit d6e2981f2528ac595fb37d2f7bdee989fb2d9720 1 parent 66bc3bb
@Oblomov Oblomov authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gettext.h
View
5 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;
Please sign in to comment.
Something went wrong with that request. Please try again.