mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 22:15:14 +00:00
add Indonesian language
thanks Zumi
This commit is contained in:
parent
0c2f9676c4
commit
80bf0867f9
10 changed files with 15610 additions and 2 deletions
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
|
||||
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..."
|
||||
|
|
|
@ -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 ""
|
||||
|
|
|
@ -67,6 +67,7 @@ const char* aboutLine[]={
|
|||
"tildearrow",
|
||||
"",
|
||||
_N("-- localization/translation team --"),
|
||||
"Bahasa Indonesia: ZoomTen (Zumi)",
|
||||
"Español: CrimsonZN, ThaCuber, tildearrow",
|
||||
"Հայերեն: Eknous",
|
||||
"한국어: Heemin, leejh20",
|
||||
|
|
|
@ -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."},
|
||||
|
|
11
src/main.cpp
11
src/main.cpp
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue