aboutsummaryrefslogtreecommitdiff
path: root/src/gettext.h
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-23 19:01:51 -0700
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-23 19:01:51 -0700
commitf4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709 (patch)
tree10f243e6ebcfcae48c3bed491ed1e6f18e19a4f7 /src/gettext.h
parenta7daf8e652a3354c5e5128d070b8547722a0d7ca (diff)
parentf6d9bcc9bb020f79f73bc2cf0187f73a6d1d9275 (diff)
downloadminetest-f4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709.tar.gz
minetest-f4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709.tar.bz2
minetest-f4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709.zip
Merge pull request #34 from SpeedProg/master
Changes to make gettext enabled if it is found
Diffstat (limited to 'src/gettext.h')
-rw-r--r--src/gettext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gettext.h b/src/gettext.h
index 8ddb95346..e74b4eb96 100644
--- a/src/gettext.h
+++ b/src/gettext.h
@@ -1,3 +1,4 @@
+#ifdef GETTEXT_FOUND
#ifdef USE_GETTEXT
#include <libintl.h>
#else
@@ -5,6 +6,11 @@
#define bindtextdomain(domain, dir) /* */
#define textdomain(domain) /* */
#endif
+#else
+#define gettext(String) String
+#define bindtextdomain(domain, dir) /* */
+#define textdomain(domain) /* */
+#endif
#define _(String) gettext(String)
#define gettext_noop(String) String