alesimula / wsa_pacman

A GUI package manager and package installer for Windows Subsystem for Android (WSA)
GNU General Public License v3.0
3.88k stars 835 forks source link

Adding more languages including Arabic #5

Closed muhammadbahaa2001 closed 2 years ago

muhammadbahaa2001 commented 2 years ago

I hope in the future you add more language including Arabic. I am ready to help you to add Arabic language translation if you agreed 🤝

alesimula commented 2 years ago

Hi, maybe I'll add them when I think I'm done implementing most of the features, I'll keep this issue open for now

wcxu21 commented 2 years ago

Happy New Year! Thank you for your work, I can help you translate the simplified Chinese language.

alesimula commented 2 years ago

@muhammadbahaa2001 @wcxu21 I added support for localization; Now all it's needed is adding a file inside the 'locale' directory (the "@@locale" property indicates the language)

wcxu21 commented 2 years ago

Chinese translation has been added.

You can change the corresponding name according to your needs, thank you for your work.

gimmeursocks commented 2 years ago

Added arabic support, hope right-to-left languages are shown correctly.

gimmeursocks commented 2 years ago

i dont know how to use github doe :) so here is the source code, sorry

{
"@@locale": "ar",
"@locale_desc": {"description": "Full name of the locale in the corresponding language"},
"locale_desc": "العربية",
"@locale_system": {"description": "Describes the system locale"},

"locale_system": "النظام",

"btn_boot": "تشغيل",
"btn_switch_on": "مفعل",
"btn_switch_off": "مغلق",

"winver_10": "ويندوز 10",
"winver_older": "إصدار ويندوز أقدم",

"status_unsupported": "حزمة WSA غير مثبتة",
"status_unsupported_desc": "تم العثور على إصدار {windowsVersion} و لم يثبت WSA ; و هذا التطبيق يعتمد على WSA, و التي تثبت على ويندوز 11 فقط",
"@status_unsupported_desc" : {"placeholders": {"windowsVersion": {"type": "String"}}},
"status_missing": "حزمة WSA غير مثبتة",
"status_missing_desc": "حزمة WSA غير موجودة; و هذا التطبيق يعتمد على WSA, برجاء تحميل نظام اندرويد لويندوز او متجر امازون من متجر مايكروسوفت",
"status_unknown": "جاري الاتصال",
"status_unknown_desc": "في انتظار الاتصال بWSA",
"status_starting": "جاري التشغيل",
"status_starting_desc": "جاري تشغيل WSA, برجاء الانتظار",
"status_arrested": "غير مفعل",
"status_arrested_desc": "WSA غير مفعل",
"status_offline": "غير متصل",
"status_offline_desc": "لم يمكن الاتصال بWSA: يمكن ان يكون وضع المطور غير مفعل, او تم تحديد المخرج الخاطىء",
"status_disconnected": "لا يمكن الاتصال",
"status_disconnected_desc": "لا يمكن عمل اتصال لWSA لاسباب غير معلومه",
"status_connected": "متصل",
"status_connected_desc": "تم الاتصال بنجاح",

"screen_wsa": "مدير حزم الWSA",
"screen_settings": "الضبط",

"wsa_manage": "إدارة الاندرويد",
"wsa_manage_app": "إدارة التطبيقات",
"wsa_manage_settings": "إدارة الضبط",

"settings_port": "مدخل الWSA",
"settings_ip": "عنوان الIP الخاص بWSA",
"settings_autostart": "تفعبل تلقائي لWSA قبل التثبيت",
"settings_language": "اللغة",

"theme_mode": "وضع السمات",
"theme_mica": "شفافية النافذة",
"theme_icon_adaptive": "ايقونات متكيفة",

"installer_message": "هل تريد تثبيت هذا التطبيق؟",
"installer_installing": "جاري تثبيث {appTitle}...",
"@installer_installing" : {"placeholders": {"appTitle": {"type": "String"}}},
"installer_installed": "تم تثبيت {appTitle} بنجاح",
"@installer_installed" : {"placeholders": {"appTitle": {"type": "String"}}},
"installer_fail": "لم يتم تثبيت {appTitle}",
"@installer_fail" : {"placeholders": {"appTitle": {"type": "String"}}},
"installer_error_nomsg": "فشل التثبيت, لكن بلا أخطاء",
"installer_btn_starting": "يتم التشغيل...",
"installer_btn_loading": "تحميل...",
"installer_btn_cancel": "إلغاء",
"installer_btn_install": "تثبيت",
"installer_btn_reinstall": "إعادة التثبيت",
"installer_btn_update": "تحديث",
"installer_btn_downgrade": "الرجوع إلى إصدار قديم(غير آمن)",
"installer_btn_dismiss": "تم",
"installer_btn_open": "فتح التطبيق",
"installer_btn_checkbox_shortcut": "عمل اختصار على سطح المكتب",

"android_permission_none": "لا يطلب اي اذونات",
"android_permission_admin": "يدير الجهاز كمشرف",
"android_permission_admin_brick": "يلغي تفعيل الجهاز او يعيد ضبطه عن بعد",
"android_permission_admin_lock": "قفل الجهاز عن بعد",
"android_permission_storage": "الملفات و الوسائط",
"android_permission_microphone": "الميكروفون",
"android_permission_camera": "الكاميرا",
"android_permission_location": "الموقع",
"android_permission_phone": "الهاتف",
"android_permission_call_log": "سجلات المكالمات",
"android_permission_sms": "الرسائل",
"android_permission_contacts": "جهات الاتصال",
"android_permission_calendar": "التقويم",
"android_permission_activity_recognition": "الانشطة البدنية",
"android_permission_sensors": "مستشعرات الجهاز",
"android_permission_sensors_body": "مستشعرات البدن",
"android_permission_nearby_devices": "تحديد الاجهزة القريبة"
}`
alesimula commented 2 years ago

@Gimmeursocks it's fine thanks for the translation; I'll check later this evening, might send some screenshots here to confirm it's displayed correcrly

alesimula commented 2 years ago

@Gimmeursocks It's not very polished out of the box, but at least it's not completely broken either (just a bit)... might need some work though

image ^ main screen

image ^ settings

image ^ installer

Are the package and version number displayed wrong? What about the IP and port options?

alesimula commented 2 years ago

Also I now realize I missed a few elements I missed while localizing the app (app version, package, and all selectable options in settings [eg. Dark, Light, System theme; Squircle, Circle icon shapes...])

gimmeursocks commented 2 years ago

looks so much better than i thought it would be, especially with the font, thank you for your time and for this great program.

gimmeursocks commented 2 years ago

yeah both the package and version numbers are from left to right, but these are common

alesimula commented 2 years ago

I added a few translation entries I'd missed: here they are

alesimula commented 2 years ago

@Gimmeursocks @wcxu21 Here is the new entries (with their final name) for previously missing translations:

"settings_option_generic_system": "System",
"settings_option_generic_disabled": "Disabled",

"theme_mode_dark": "Dark",
"theme_mode_light": "Light",
"theme_mica_full": "Full",
"theme_mica_partial": "Partial",
"theme_icon_adaptive_squircle": "Squircle",
"theme_icon_adaptive_circle": "Circle",
"theme_icon_adaptive_rounded_square": "Rounded Square",

"installer_info_version": "Version: {appVersion}",
"installer_info_version_change": "Version: {appVersionOld} => {appVersionNew}",
"installer_info_package": "Package: {appPackage}",

They've already been added for English, Italian and Portoguese

muhammadbahaa2001 commented 2 years ago

@alesimula here it is...

"settings_option_generic_system": "النظام", "settings_option_generic_disabled": "غير مفعل",

"theme_mode_dark": "داكن", "theme_mode_light": "ساطع", "theme_mica_full": "كامل", "theme_mica_partial": "جزئي", "theme_icon_adaptive_squircle": "مربع منحني", "theme_icon_adaptive_circle": "دائري", "theme_icon_adaptive_rounded_square": "مربع مستدير",

"installer_info_version": "الإصدار: {appVersion}", "installer_info_version_change": "الإصدار: {appVersionOld} => {appVersionNew}", "installer_info_package": "الحزمة: {appPackage}",

wcxu21 commented 2 years ago

Updated Simplified Chinese translation

alesimula commented 2 years ago

@muhammadbahaa2001 @Gimmeursocks I'm going to release a better RTL interface on the next update, here's my progress:

image image image

muhammadbahaa2001 commented 2 years ago

@alesimula Your work is incredible and wonderful! well done bro, thank you for listening for the feedback / request.

alesimula commented 2 years ago

@muhammadbahaa2001 @Gimmeursocks The UI should be fully fixed on 1.2.2 for right-to-left languages

gimmeursocks commented 2 years ago

thank you for your continued support for including arabic, have a pleasant evening.