do not set locale if it's English

This commit is contained in:
tildearrow 2024-06-19 13:43:28 -05:00
parent 8a6d81473e
commit 64f931e895
2 changed files with 56 additions and 54 deletions

View file

@ -79,7 +79,7 @@ const char* locales[][3]={
//{"Français (0%)", "fr_FR", "redémarrer Furnace pour que ce réglage soit effectif."},
//{"Հայերեն (1%)", "hy_AM", "???"},
//{"日本語 (0%)", "ja_JP", "???"},
//{"한국어 (10%)", "ko_KR", "이 설정을 적용하려면 Furnace를 다시 시작해야 합니다."},
{"한국어 (10%)", "ko_KR", "이 설정을 적용하려면 Furnace를 다시 시작해야 합니다."},
//{"Nederlands (4%)", "nl_NL", "start Furnace opnieuw op om deze instelling effectief te maken."},
{"Polski (90%)", "pl_PL", "aby to ustawienie było skuteczne, należy ponownie uruchomić program."},
{"Português (Brasil) (90%)", "pt_BR", "reinicie o Furnace para que essa configuração entre em vigor."},

View file

@ -555,6 +555,7 @@ int main(int argc, char** argv) {
reqLocale+=".UTF-8";
}
}
if (reqLocale!="en_US.UTF-8") {
const char* localeRet=NULL;
#ifdef HAVE_SETLOCALE
if ((localeRet=setlocale(LC_CTYPE,reqLocale.c_str()))==NULL) {
@ -623,6 +624,7 @@ int main(int argc, char** argv) {
}
}
#endif
}
initParams();