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

15595
po/id.po Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,5 +1,5 @@
#!/bin/sh
EXPORT_LANGS=("de" "es" "fr" "fi" "hy" "ko" "nl" "pl" "pt_BR" "ru" "sk" "sv" "th" "tr" "uk")
EXPORT_LANGS=("de" "es" "fr" "fi" "hy" "id" "ko" "nl" "pl" "pt_BR" "ru" "sk" "sv" "th" "tr" "uk")
for i in ${EXPORT_LANGS[@]}; do
echo "compiling $i.po..."

View file

@ -2,7 +2,7 @@
FUR_VERSION="0.6.3"
EXPORT_LANGS=("de" "es" "fr" "fi" "hy" "ja" "ko" "nl" "pl" "pt_BR" "ru" "sk" "sv" "th" "tr" "uk")
EXPORT_LANGS=("de" "es" "fr" "fi" "hy" "id" "ja" "ko" "nl" "pl" "pt_BR" "ru" "sk" "sv" "th" "tr" "uk")
echo '#
msgid ""

View file

@ -67,6 +67,7 @@ const char* aboutLine[]={
"tildearrow",
"",
_N("-- localization/translation team --"),
"Bahasa Indonesia: ZoomTen (Zumi)",
"Español: CrimsonZN, ThaCuber, tildearrow",
"Հայերեն: Eknous",
"한국어: Heemin, leejh20",

View file

@ -72,6 +72,7 @@
const char* locales[][3]={
{"<System>", "", ""},
{"English", "en_US", "restart Furnace for this setting to take effect."},
{"Bahasa Indonesia", "id_ID", "???"},
{"Deutsch (0%)", "de_DE", "Starten Sie Furnace neu, damit diese Einstellung wirksam wird."},
{"Español", "es_ES", "reinicia Furnace para que esta opción tenga efecto."},
{"Suomi (0%)", "fi_FI", "käynnistä Furnace uudelleen, jotta tämä asetus tulee voimaan."},

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);
}