fixed problem with wront paths in gettext
authorConstantin Wenger <constantin.wenger@googlemail.com>
Wed, 20 Jul 2011 16:49:18 +0000 (18:49 +0200)
committerConstantin Wenger <constantin.wenger@googlemail.com>
Wed, 20 Jul 2011 16:49:18 +0000 (18:49 +0200)
src/main.cpp

index 1cc479d65eb57bb5a1a7fbab91d37bfc264918f1..00248a2032cb3a043409dfad92ebf5752bd12204 100644 (file)
@@ -1060,10 +1060,6 @@ int main(int argc, char *argv[])
        std::locale::global(std::locale("C"));\r
        // This enables printing all characters in bitmap font\r
        setlocale(LC_CTYPE, "en_US");\r
-       setlocale(LC_ALL, "");\r
-       bindtextdomain("minetest-c55", "./../locale");\r
-       textdomain("minetest-c55");\r
-\r
        /*\r
                Parse command line\r
        */\r
@@ -1135,6 +1131,10 @@ int main(int argc, char *argv[])
 \r
        // Create user data directory\r
        fs::CreateDir(porting::path_userdata);\r
+\r
+       setlocale(LC_ALL, "");\r
+       bindtextdomain("minetest-c55", (porting::path_userdata+"/locale").c_str());\r
+       textdomain("minetest-c55");\r
        \r
        // Initialize debug streams\r
 #ifdef RUN_IN_PLACE\r