Merge pull request #772 from kdmukai/enable_persian

[l10n] Enable Arabic and Persian
This commit is contained in:
Nick Klockenga
2025-09-05 16:38:03 -04:00
committed by GitHub
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -50,11 +50,12 @@ class GUIConstants:
BASE_LOCALE_FONTS = {
"default": "OpenSans-Regular",
# SettingsConstants.LOCALE__ARABIC: "NotoSansAR-Regular",
SettingsConstants.LOCALE__ARABIC: "NotoSansAR-Regular",
SettingsConstants.LOCALE__CHINESE_SIMPLIFIED: "NotoSansSC-Regular",
# SettingsConstants.LOCALE__CHINESE_TRADITIONAL: "NotoSansTC-Regular",
SettingsConstants.LOCALE__JAPANESE: "NotoSansJP-Regular",
SettingsConstants.LOCALE__KOREAN: "NotoSansKR-Regular",
SettingsConstants.LOCALE__PERSIAN: "NotoSansAR-Regular", # Uses the Arabic font
SettingsConstants.LOCALE__THAI: "NotoSansTH-Regular",
}
@@ -91,7 +92,8 @@ class GUIConstants:
BUTTON_FONT_NAME["default"] = "OpenSans-SemiBold"
BUTTON_FONT_SIZE = {
"default": 18,
# "ar": 16,
"ar": 18,
"fa": 18,
SettingsConstants.LOCALE__JAPANESE: 20,
SettingsConstants.LOCALE__KOREAN: 20,
SettingsConstants.LOCALE__CHINESE_SIMPLIFIED: 20,
+2 -2
View File
@@ -136,7 +136,7 @@ class SettingsConstants:
# --------- Placeholders / Coming soon ------------------------------------------
# Commented out options require explicit additional font support.
# -------------------------------------------------------------------------------
# LOCALE__ARABIC: "العربية (Arabic)",
LOCALE__ARABIC: "العربية (Arabic)",
# LOCALE__BENGALI: "বাংলা (Bengali)",
LOCALE__BULGARIAN: "български (Bulgarian)", # OpenSans includes cyrillic chars
LOCALE__CZECH: "čeština",
@@ -161,7 +161,7 @@ class SettingsConstants:
LOCALE__MALTESE: "Malti",
# LOCALE__MARATHI: "मराठी (Marathi)",
LOCALE__NORWEGIAN: "Norsk",
# LOCALE__PERSIAN: "فارسی (Persian)",
LOCALE__PERSIAN: "فارسی (Persian)",
LOCALE__POLISH: "Polski",
LOCALE__PORTUGUESE_BR: "Português (Brasil)",
LOCALE__PORTUGUESE_PT: "Português (Portugal)",