diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-20 17:56:49 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-20 17:56:49 +0200 |
commit | 69937c342cc420d352f6f7f5c6c90383312b76d4 (patch) | |
tree | efff8e50e488073fa25af864191b33d78c1d5bac /src/gettext.h | |
parent | 9bc701d194ea9e2bc56c1c9c473d6602e6070d60 (diff) | |
parent | 489a7ef3247f1db1f44efa2c7fbafb70c00f7812 (diff) | |
download | minetest-69937c342cc420d352f6f7f5c6c90383312b76d4.tar.gz minetest-69937c342cc420d352f6f7f5c6c90383312b76d4.tar.bz2 minetest-69937c342cc420d352f6f7f5c6c90383312b76d4.zip |
Merge branch 'master' of github.com:erlehmann/minetest-delta
Diffstat (limited to 'src/gettext.h')
-rw-r--r-- | src/gettext.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gettext.h b/src/gettext.h new file mode 100644 index 000000000..7f5f56e49 --- /dev/null +++ b/src/gettext.h @@ -0,0 +1,12 @@ +#include <libintl.h> +#define _(String) gettext(String) +#define gettext_noop(String) String +#define N_(String) gettext_noop (String) + +inline wchar_t* chartowchar_t(char *str) +{ + size_t l = strlen(str)+1; + wchar_t* nstr = new wchar_t[l]; + mbstowcs(nstr, str, l); + return nstr; +} |