diff options
author | Constantin Wenger <constantin.wenger@googlemail.com> | 2011-07-20 18:49:18 +0200 |
---|---|---|
committer | Constantin Wenger <constantin.wenger@googlemail.com> | 2011-07-20 18:49:18 +0200 |
commit | c6d99fbe0c42b86585263a2562db671d9c168581 (patch) | |
tree | 5787419e3cc895f1cd4ce8980d5d7d9584d2951c /src | |
parent | e787e16a833a988e9658dbfe556cc2cc1d7d0714 (diff) | |
download | minetest-c6d99fbe0c42b86585263a2562db671d9c168581.tar.gz minetest-c6d99fbe0c42b86585263a2562db671d9c168581.tar.bz2 minetest-c6d99fbe0c42b86585263a2562db671d9c168581.zip |
fixed problem with wront paths in gettext
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1cc479d65..00248a203 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
|