diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-08-02 01:49:31 -0700 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-08-02 01:49:31 -0700 |
commit | f143e269f47fd024f69c3f536b558fbac4828b41 (patch) | |
tree | c74639d3fb5641a4b051f7533c77a13124f913c2 /src/gettext.h | |
parent | bbd8e645a2e92157ac33e5bb1a89786d7f0c984c (diff) | |
parent | 1d1aec9631e3ae077db6060f0fe19487b7b23aae (diff) | |
download | minetest-f143e269f47fd024f69c3f536b558fbac4828b41.tar.gz minetest-f143e269f47fd024f69c3f536b558fbac4828b41.tar.bz2 minetest-f143e269f47fd024f69c3f536b558fbac4828b41.zip |
Merge pull request #48 from Oblomov/master
Minor code cleanups (always in the gettext area, but no functional changs)
Diffstat (limited to 'src/gettext.h')
-rw-r--r-- | src/gettext.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |