File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -142,13 +142,14 @@ void init_gettext(const char *path,std::string configured_language) {
142
142
143
143
SetEnvironmentVariableA (" LANGUAGE" ,configured_language.c_str ());
144
144
145
+ #ifndef SERVER
145
146
// very very dirty workaround to force gettext to see the right environment
146
147
if (current_language_var != configured_language) {
147
148
STARTUPINFO startupinfo;
148
149
PROCESS_INFORMATION processinfo;
149
150
memset (&startupinfo,0 ,sizeof (startupinfo));
150
151
memset (&processinfo,0 ,sizeof (processinfo));
151
- errorstream << " MSVC localization workaround aktive restating minetest in new environment!" << std::endl;
152
+ errorstream << " MSVC localization workaround active restating minetest in new environment!" << std::endl;
152
153
153
154
std::string parameters = " " ;
154
155
@@ -199,6 +200,13 @@ void init_gettext(const char *path,std::string configured_language) {
199
200
else {
200
201
exit (0 );
201
202
}
203
+ #else
204
+ errorstream << " *******************************************************" << std::endl;
205
+ errorstream << " Can't apply locale workaround for server!" << std::encl;
206
+ errorstream << " Expect language to be broken!" << std::endl;
207
+ errorstream << " *******************************************************" << std::endl;
208
+
209
+ #endif
202
210
}
203
211
204
212
setlocale (LC_ALL,configured_language.c_str ());
You can’t perform that action at this time.
0 commit comments