mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-02 02:52:40 +00:00
do not set locale if it's English
This commit is contained in:
parent
8a6d81473e
commit
64f931e895
2 changed files with 56 additions and 54 deletions
|
@ -79,7 +79,7 @@ const char* locales[][3]={
|
||||||
//{"Français (0%)", "fr_FR", "redémarrer Furnace pour que ce réglage soit effectif."},
|
//{"Français (0%)", "fr_FR", "redémarrer Furnace pour que ce réglage soit effectif."},
|
||||||
//{"Հայերեն (1%)", "hy_AM", "???"},
|
//{"Հայերեն (1%)", "hy_AM", "???"},
|
||||||
//{"日本語 (0%)", "ja_JP", "???"},
|
//{"日本語 (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."},
|
//{"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."},
|
{"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."},
|
{"Português (Brasil) (90%)", "pt_BR", "reinicie o Furnace para que essa configuração entre em vigor."},
|
||||||
|
|
|
@ -555,6 +555,7 @@ int main(int argc, char** argv) {
|
||||||
reqLocale+=".UTF-8";
|
reqLocale+=".UTF-8";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (reqLocale!="en_US.UTF-8") {
|
||||||
const char* localeRet=NULL;
|
const char* localeRet=NULL;
|
||||||
#ifdef HAVE_SETLOCALE
|
#ifdef HAVE_SETLOCALE
|
||||||
if ((localeRet=setlocale(LC_CTYPE,reqLocale.c_str()))==NULL) {
|
if ((localeRet=setlocale(LC_CTYPE,reqLocale.c_str()))==NULL) {
|
||||||
|
@ -623,6 +624,7 @@ int main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
initParams();
|
initParams();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue