diff options
author | sapier <Sapier at GMX dot net> | 2013-11-09 10:57:41 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2013-11-11 19:56:49 +0100 |
commit | bb54e2cf1d91381e46ba24654a39cc9c1cbadb23 (patch) | |
tree | 368c5ce9b68a4462743cfb08cf06cb914c4cbc68 | |
parent | 22a59b3912ff5e7bb1516faa06f1841545a8117c (diff) | |
download | minetest-bb54e2cf1d91381e46ba24654a39cc9c1cbadb23.tar.gz minetest-bb54e2cf1d91381e46ba24654a39cc9c1cbadb23.tar.bz2 minetest-bb54e2cf1d91381e46ba24654a39cc9c1cbadb23.zip |
Disable localization workaround in server
-rw-r--r-- | src/gettext.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gettext.cpp b/src/gettext.cpp index 455c78584..d4dc719b4 100644 --- a/src/gettext.cpp +++ b/src/gettext.cpp @@ -142,13 +142,14 @@ void init_gettext(const char *path,std::string configured_language) { SetEnvironmentVariableA("LANGUAGE",configured_language.c_str()); +#ifndef SERVER //very very dirty workaround to force gettext to see the right environment if (current_language_var != configured_language) { STARTUPINFO startupinfo; PROCESS_INFORMATION processinfo; memset(&startupinfo,0,sizeof(startupinfo)); memset(&processinfo,0,sizeof(processinfo)); - errorstream << "MSVC localization workaround aktive restating minetest in new environment!" << std::endl; + errorstream << "MSVC localization workaround active restating minetest in new environment!" << std::endl; std::string parameters = ""; @@ -199,6 +200,13 @@ void init_gettext(const char *path,std::string configured_language) { else { exit(0); } +#else + errorstream << "*******************************************************" << std::endl; + errorstream << "Can't apply locale workaround for server!" << std::encl; + errorstream << "Expect language to be broken!" << std::endl; + errorstream << "*******************************************************" << std::endl; + +#endif } setlocale(LC_ALL,configured_language.c_str()); |