mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 23:18:25 +00:00
Merge pull request #772 from kdmukai/enable_persian
[l10n] Enable Arabic and Persian
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)",
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user