diff options
| author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-22 10:30:55 -0700 |
|---|---|---|
| committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-22 10:30:55 -0700 |
| commit | a45f287ae1b96742dfd03a01e0b558385e7b1384 (patch) | |
| tree | a8cc536df3d78b67a11a98ba672cfc4d80f9e32f /src/gettext.h | |
| parent | 21b7a272c4558795f5e8b7d8af859d51dd616d31 (diff) | |
| parent | 7d9dd352cfd680ef31bb309138939d37e4cbf90a (diff) | |
| download | minetest-a45f287ae1b96742dfd03a01e0b558385e7b1384.tar.xz | |
Merge pull request #32 from Oblomov/master
Gettext + misc fixes
Diffstat (limited to 'src/gettext.h')
| -rw-r--r-- | src/gettext.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gettext.h b/src/gettext.h index 7f5f56e49..8ddb95346 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -1,9 +1,16 @@ +#ifdef USE_GETTEXT #include <libintl.h> +#else +#define gettext(String) String +#define bindtextdomain(domain, dir) /* */ +#define textdomain(domain) /* */ +#endif + #define _(String) gettext(String) #define gettext_noop(String) String #define N_(String) gettext_noop (String) -inline wchar_t* chartowchar_t(char *str) +inline wchar_t* chartowchar_t(const char *str) { size_t l = strlen(str)+1; wchar_t* nstr = new wchar_t[l]; |
