Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Arabic localization #107

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion Firm_Saturn/language.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,28 @@ char *lang_es[LANG_STR_NR] = {
"¡No es un disco de Juego!",
};

char *lang_ar[LANG_STR_NR] = {
"(%d/%d) اختار اللعبة",
"(%d/%d) اختير الملف",
"...... بدأت اللعبة",
"%d !فشل تحميل اللعبة",
"...... تحميل الملف",
"%d !فشل تحميل الملف",
"اختر اللعبة",
"مشغل الأقراص المضغوطة",
"تشغيل قرص اللعبة المضغوط",
"أداة التصحيح التسلسلي",
"تشغيل الملف الثنائي",
"تحديث البرنامج الثابت",
"!يتم التحديث... لا توقف الجهاز",
"!فشل التحديث",
"!انتهاء التحديث! قم بإعادة التشغيل",
"SAROO قائمت تشغيل",
"...... فحص القرص",
"!لم يتم على العثور القرص",
"!ليس قرص لعبة",
};

char **lang_cur;


Expand Down Expand Up @@ -306,14 +328,16 @@ void lang_init(void)
lang_cur = lang_de;
}else if(lang_id==8){
lang_cur = lang_es;
}else if(lang_id==9){
lang_cur = lang_ar;
}
}


void lang_next(void)
{
lang_id += 1;
if(lang_id>8)
if(lang_id>9)
lang_id = 0;

lang_init();
Expand Down
4 changes: 2 additions & 2 deletions doc/saroocfg.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SAROO config file
# 可用配置:
# lang_id=x
# 选择菜单语言: 0:中文 1:EN 2:PTBR 3:JA 4:FR 5:RU 6:繁中 7:de 8:es
# 选择菜单语言: 0:中文 1:EN 2:PTBR 3:JA 4:FR 5:RU 6:繁中 7:DE 8:ES 9:AR
# debug=xxxxxxxx
# 各种调试选项
# auto_update:
Expand Down Expand Up @@ -133,4 +133,4 @@ sector_delay=500
# LAST GLADIATORS
# Fixes black screen when leaving options
[T-4804H V1.000]
sector_delay=1000
sector_delay=1000