quick fix to it not building with gettext on my visual studio environment
authorPerttu Ahola <celeron55@gmail.com>
Sat, 30 Jul 2011 11:38:41 +0000 (14:38 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 30 Jul 2011 11:38:41 +0000 (14:38 +0300)
src/gettext.h
src/main.cpp

index 8ddb9534691bde14bf5b105f14ea437836985b7c..73b9f89869a32a610c8c0e601887ac883ac3169a 100644 (file)
@@ -2,8 +2,6 @@
 #include <libintl.h>
 #else
 #define gettext(String) String
-#define bindtextdomain(domain, dir) /* */
-#define textdomain(domain) /* */
 #endif
 
 #define _(String) gettext(String)
index 09c299004078bdf28045c320b62dfe249d4f70c1..9a9b22f87fa54e840f8caa03b39a8400083bcd42 100644 (file)
@@ -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