aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-07-30 14:38:41 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-07-30 14:38:41 +0300
commitdf27b854325c1fe96b7bc9f8a1cc227b55896f57 (patch)
treeb5d9fb012aa7d83f3ab16300a57d8f8c4461ff10 /src
parent1de45cc8a7e191dedd8c2d9ca10c71eff88dc9ef (diff)
downloadminetest-df27b854325c1fe96b7bc9f8a1cc227b55896f57.tar.gz
minetest-df27b854325c1fe96b7bc9f8a1cc227b55896f57.tar.bz2
minetest-df27b854325c1fe96b7bc9f8a1cc227b55896f57.zip
quick fix to it not building with gettext on my visual studio environment
Diffstat (limited to 'src')
-rw-r--r--src/gettext.h2
-rw-r--r--src/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gettext.h b/src/gettext.h
index 8ddb95346..73b9f8986 100644
--- a/src/gettext.h
+++ b/src/gettext.h
@@ -2,8 +2,6 @@
#include <libintl.h>
#else
#define gettext(String) String
-#define bindtextdomain(domain, dir) /* */
-#define textdomain(domain) /* */
#endif
#define _(String) gettext(String)
diff --git a/src/main.cpp b/src/main.cpp
index 09c299004..9a9b22f87 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1161,9 +1161,11 @@ int main(int argc, char *argv[])
// Create user data directory
fs::CreateDir(porting::path_userdata);
+#ifdef USE_GETTEXT
setlocale(LC_MESSAGES, "");
bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());
textdomain("minetest");
+#endif
// Initialize debug streams
#ifdef RUN_IN_PLACE