aboutsummaryrefslogtreecommitdiff
path: root/src/gettext.h
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-22 10:30:55 -0700
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-22 10:30:55 -0700
commit0fbb0bcaabdb5ebb817cb8c23bbdcff7014d063f (patch)
tree4bc536a47f7a05be80a4455505f1df0acf6bc7bd /src/gettext.h
parent909075da5c656e42ea6b8c98c9c8ceb11c01fcc1 (diff)
parent965352287391eb46695546efce3e26a2e576a340 (diff)
downloadminetest-0fbb0bcaabdb5ebb817cb8c23bbdcff7014d063f.tar.gz
minetest-0fbb0bcaabdb5ebb817cb8c23bbdcff7014d063f.tar.bz2
minetest-0fbb0bcaabdb5ebb817cb8c23bbdcff7014d063f.zip
Merge pull request #32 from Oblomov/master
Gettext + misc fixes
Diffstat (limited to 'src/gettext.h')
-rw-r--r--src/gettext.h9
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];