aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/L10N
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-08-20 16:32:42 +0200
committerJoas Schilling <coding@schilljs.com>2024-09-23 16:59:49 +0200
commitae06ab5860b007e94d63891d679e5c40b9292a8a (patch)
tree05ea07f701700c64c515790105949367b9f6228c /lib/private/L10N
parentd94745201b2e17805833ad0c1763c37bd009f513 (diff)
downloadnextcloud-server-ae06ab5860b007e94d63891d679e5c40b9292a8a.tar.gz
nextcloud-server-ae06ab5860b007e94d63891d679e5c40b9292a8a.zip
fix(rtl): Fix list of RTL languages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/L10N')
-rw-r--r--lib/private/L10N/Factory.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php
index a74781a2ed0..ea6360efdf0 100644
--- a/lib/private/L10N/Factory.php
+++ b/lib/private/L10N/Factory.php
@@ -58,10 +58,17 @@ class Factory implements IFactory {
'pt_BR', 'pt_PT', 'da', 'fi_FI', 'nb_NO', 'sv', 'tr', 'zh_CN', 'ko'
];
+ /**
+ * Keep in sync with `build/translation-checker.php`
+ */
public const RTL_LANGUAGES = [
- 'ae', 'ar', 'arc', 'arz', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk',
- 'ha', 'he', 'khw', 'ks', 'ku', 'mzn', 'nqo', 'pnb', 'ps', 'sd', 'ug',
- 'ur', 'uzs', 'yi',
+ 'ar', // Arabic
+ 'fa', // Persian
+ 'he', // Hebrew
+ 'ps', // Pashto,
+ 'ug', // 'Uyghurche / Uyghur
+ 'ur_PK', // Urdu
+ 'uz', // Uzbek Afghan
];
private ICache $cache;
@@ -371,8 +378,7 @@ class Factory implements IFactory {
}
- public function getLanguageDirectionFromLocale(string $locale): string
- {
+ public function getLanguageDirectionFromLocale(string $locale): string {
if (in_array($locale, self::RTL_LANGUAGES)) {
return 'rtl';
}