From: Constantin Wenger Date: Wed, 20 Jul 2011 16:49:18 +0000 (+0200) Subject: fixed problem with wront paths in gettext X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4d43a674190767cd85288b48737f97e94854e6f4;p=zefram%2Fminetest%2Fminetest_engine.git fixed problem with wront paths in gettext --- diff --git a/src/main.cpp b/src/main.cpp index 1cc479d6..00248a20 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1060,10 +1060,6 @@ int main(int argc, char *argv[]) std::locale::global(std::locale("C")); // This enables printing all characters in bitmap font setlocale(LC_CTYPE, "en_US"); - setlocale(LC_ALL, ""); - bindtextdomain("minetest-c55", "./../locale"); - textdomain("minetest-c55"); - /* Parse command line */ @@ -1135,6 +1131,10 @@ int main(int argc, char *argv[]) // Create user data directory fs::CreateDir(porting::path_userdata); + + setlocale(LC_ALL, ""); + bindtextdomain("minetest-c55", (porting::path_userdata+"/locale").c_str()); + textdomain("minetest-c55"); // Initialize debug streams #ifdef RUN_IN_PLACE