add Indonesian language

thanks Zumi
This commit is contained in:
tildearrow 2024-06-14 03:10:19 -05:00
parent 0c2f9676c4
commit 80bf0867f9
10 changed files with 15610 additions and 2 deletions

View file

@ -99,6 +99,7 @@ bool consoleNoStatus=false;
bool consoleNoControls=false;
bool displayEngineFailError=false;
bool displayLocaleFailError=false;
bool vgmOutDirect=false;
bool safeMode=false;
@ -517,11 +518,13 @@ int main(int argc, char** argv) {
#ifdef HAVE_SETLOCALE
if ((localeRet=setlocale(LC_CTYPE,reqLocale.c_str()))==NULL) {
logE("could not set locale (CTYPE)!");
displayLocaleFailError=true;
} else {
logV("locale: %s",localeRet);
}
if ((localeRet=setlocale(LC_MESSAGES,reqLocale.c_str()))==NULL) {
logE("could not set locale (MESSAGES)!");
displayLocaleFailError=true;
#ifdef HAVE_MOMO
if (momo_setlocale(LC_MESSAGES,reqLocale.c_str())==NULL) {
logV("Momo: could not set locale!");
@ -859,6 +862,14 @@ int main(int argc, char** argv) {
g.showError("error while initializing audio!");
}
if (displayLocaleFailError) {
#ifdef __unix__
g.showError("could not load language!\napparently your system does not support this language correctly.\nmake sure you've generated language data by editing /etc/locale.gen\nand then running locale-gen as root.");
#else
g.showError("could not load language!\nthis is a bug!");
#endif
}
if (!fileName.empty()) {
g.setFileName(fileName);
}