From: Perttu Ahola Date: Sat, 30 Jul 2011 11:38:41 +0000 (+0300) Subject: quick fix to it not building with gettext on my visual studio environment X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=df27b854325c1fe96b7bc9f8a1cc227b55896f57;p=zefram%2Fminetest%2Fminetest_engine.git quick fix to it not building with gettext on my visual studio environment --- diff --git a/src/gettext.h b/src/gettext.h index 8ddb9534..73b9f898 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -2,8 +2,6 @@ #include #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 09c29900..9a9b22f8 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