add Indonesian language
thanks Zumi
This commit is contained in:
parent
0c2f9676c4
commit
80bf0867f9
Binary file not shown.
BIN
po/locale/id/LC_MESSAGES/furnace.mo
Normal file
BIN
po/locale/id/LC_MESSAGES/furnace.mo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/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
|
for i in ${EXPORT_LANGS[@]}; do
|
||||||
echo "compiling $i.po..."
|
echo "compiling $i.po..."
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
FUR_VERSION="0.6.3"
|
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 '#
|
echo '#
|
||||||
msgid ""
|
msgid ""
|
||||||
|
|
|
@ -67,6 +67,7 @@ const char* aboutLine[]={
|
||||||
"tildearrow",
|
"tildearrow",
|
||||||
"",
|
"",
|
||||||
_N("-- localization/translation team --"),
|
_N("-- localization/translation team --"),
|
||||||
|
"Bahasa Indonesia: ZoomTen (Zumi)",
|
||||||
"Español: CrimsonZN, ThaCuber, tildearrow",
|
"Español: CrimsonZN, ThaCuber, tildearrow",
|
||||||
"Հայերեն: Eknous",
|
"Հայերեն: Eknous",
|
||||||
"한국어: Heemin, leejh20",
|
"한국어: Heemin, leejh20",
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
const char* locales[][3]={
|
const char* locales[][3]={
|
||||||
{"<System>", "", ""},
|
{"<System>", "", ""},
|
||||||
{"English", "en_US", "restart Furnace for this setting to take effect."},
|
{"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."},
|
{"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."},
|
{"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."},
|
{"Suomi (0%)", "fi_FI", "käynnistä Furnace uudelleen, jotta tämä asetus tulee voimaan."},
|
||||||
|
|
11
src/main.cpp
11
src/main.cpp
|
@ -99,6 +99,7 @@ bool consoleNoStatus=false;
|
||||||
bool consoleNoControls=false;
|
bool consoleNoControls=false;
|
||||||
|
|
||||||
bool displayEngineFailError=false;
|
bool displayEngineFailError=false;
|
||||||
|
bool displayLocaleFailError=false;
|
||||||
bool vgmOutDirect=false;
|
bool vgmOutDirect=false;
|
||||||
|
|
||||||
bool safeMode=false;
|
bool safeMode=false;
|
||||||
|
@ -517,11 +518,13 @@ int main(int argc, char** argv) {
|
||||||
#ifdef HAVE_SETLOCALE
|
#ifdef HAVE_SETLOCALE
|
||||||
if ((localeRet=setlocale(LC_CTYPE,reqLocale.c_str()))==NULL) {
|
if ((localeRet=setlocale(LC_CTYPE,reqLocale.c_str()))==NULL) {
|
||||||
logE("could not set locale (CTYPE)!");
|
logE("could not set locale (CTYPE)!");
|
||||||
|
displayLocaleFailError=true;
|
||||||
} else {
|
} else {
|
||||||
logV("locale: %s",localeRet);
|
logV("locale: %s",localeRet);
|
||||||
}
|
}
|
||||||
if ((localeRet=setlocale(LC_MESSAGES,reqLocale.c_str()))==NULL) {
|
if ((localeRet=setlocale(LC_MESSAGES,reqLocale.c_str()))==NULL) {
|
||||||
logE("could not set locale (MESSAGES)!");
|
logE("could not set locale (MESSAGES)!");
|
||||||
|
displayLocaleFailError=true;
|
||||||
#ifdef HAVE_MOMO
|
#ifdef HAVE_MOMO
|
||||||
if (momo_setlocale(LC_MESSAGES,reqLocale.c_str())==NULL) {
|
if (momo_setlocale(LC_MESSAGES,reqLocale.c_str())==NULL) {
|
||||||
logV("Momo: could not set locale!");
|
logV("Momo: could not set locale!");
|
||||||
|
@ -859,6 +862,14 @@ int main(int argc, char** argv) {
|
||||||
g.showError("error while initializing audio!");
|
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()) {
|
if (!fileName.empty()) {
|
||||||
g.setFileName(fileName);
|
g.setFileName(fileName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue