r28716 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28715‎ | r28716 | r28717 >
Date:18:19, 20 December 2007
Author:raymond
Status:old
Tags:
Comment:
Add digit transformation for Kurdish - Arabic script (Sorani)
Modified paths:
  • /trunk/phase3/languages/classes/LanguageKu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKu_arab.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/messages/MessagesKu_arab.php
@@ -19,6 +19,21 @@
2020 'simple' => 'ساده‌'
2121 );
2222
 23+$digitTransformTable = array(
 24+ '0' => '٠', # ٠
 25+ '1' => '١', # ١
 26+ '2' => '٢', # ٢
 27+ '3' => '٣', # ٣
 28+ '4' => '٤', # ٤
 29+ '5' => '٥', # ٥
 30+ '6' => '٦', # ٦
 31+ '7' => '٧', # ٧
 32+ '8' => '٨', # ٨
 33+ '9' => '٩', # ٩
 34+ '.' => '٫', # ٫ wrong table ?
 35+ ',' => '٬', # ٬
 36+);
 37+
2338 $messages = array(
2439 # User preference toggles
2540 'tog-underline' => 'هێڵ به‌ژێر به‌سته‌ر دا بهێنه‌ :',
Index: trunk/phase3/languages/classes/LanguageKu.php
@@ -15,6 +15,9 @@
1616 'م' => 'm', 'ن' => 'n', 'پ' => 'p', 'ق' => 'q', 'ر' => 'r', 'س' => 's', 'ش' => 'ş',
1717 'ت' => 't', 'ڤ' => 'v', 'خ' => 'x', 'غ' => 'x', 'ز' => 'z',
1818
 19+// ک و => ku -- ist richtig
 20+// و ك=> ku -- ist auch richtig
 21+
1922 /* Doppel- und Halbvokale */
2023 'ڵ' => 'll', #ll
2124 'ڕ' => 'rr', #rr
@@ -34,6 +37,18 @@
3538 '،' => ',',
3639 'ع' => '\'', # ayn
3740 '؟' => '?',
 41+
 42+ # digits
 43+ '٠' => '0', # ٠
 44+ '١' => '1', # ١
 45+ '٢' => '2', # ٢
 46+ '٣' => '3', # ٣
 47+ '٤' => '4', # ٤
 48+ '٥' => '5', # ٥
 49+ '٦' => '6', # ٦
 50+ '٧' => '7', # ٧
 51+ '٨' => '8', # ٨
 52+ '٩' => '9', # ٩
3853 );
3954
4055 var $mLatinToArabic = array(
@@ -95,7 +110,20 @@
96111 # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu häufig, um sie als eyn zu interpretieren
97112 # '\'' => 'ع',
98113
99 - );
 114+/* # deactivated for now, breaks links i.e. in header of Special:Recentchanges :-(
 115+ # digits
 116+ '0' => '٠', # ٠
 117+ '1' => '١', # ١
 118+ '2' => '٢', # ٢
 119+ '3' => '٣', # ٣
 120+ '4' => '٤', # ٤
 121+ '5' => '٥', # ٥
 122+ '6' => '٦', # ٦
 123+ '7' => '٧', # ٧
 124+ '8' => '٨', # ٨
 125+ '9' => '٩', # ٩
 126+*/
 127+ );
100128
101129 function loadDefaultTables() {
102130 $this->mTables = array(
@@ -236,5 +264,3 @@
237265 }
238266 */
239267 }
240 -
241 -

Status & tagging log