commit
233f5a7c59
|
@ -312,11 +312,14 @@ bool CApplication::Create()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string langStr = "LANGUAGE=";
|
if (!locale.empty())
|
||||||
|
{
|
||||||
|
std::string langStr = "LANG=";
|
||||||
langStr += locale;
|
langStr += locale;
|
||||||
strcpy(S_LANGUAGE, langStr.c_str());
|
strcpy(S_LANGUAGE, langStr.c_str());
|
||||||
putenv(S_LANGUAGE);
|
putenv(S_LANGUAGE);
|
||||||
setlocale(LC_ALL, locale.c_str());
|
}
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
GetLogger()->Debug("Set locale to '%s'\n", locale.c_str());
|
GetLogger()->Debug("Set locale to '%s'\n", locale.c_str());
|
||||||
|
|
||||||
bindtextdomain("colobot", COLOBOT_I18N_DIR);
|
bindtextdomain("colobot", COLOBOT_I18N_DIR);
|
||||||
|
|
Loading…
Reference in New Issue