Index: trunk/phase3/languages/LanguageAr.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | # See language.doc |
4 | 4 | include_once("LanguageUtf8.php"); |
5 | 5 | |
6 | | -$wgNamespaceNamesAr = array( |
| 6 | +/* private */ $wgNamespaceNamesAr = array( |
7 | 7 | "-2" => "ملف", |
8 | 8 | "-1" => "خاص", |
9 | 9 | "0" => "", |
— | — | @@ -17,6 +17,17 @@ |
18 | 18 | "9" => "MediaWiki_talk", |
19 | 19 | ); |
20 | 20 | |
| 21 | +/* private */ $wgWeekdayNamesAr = array( |
| 22 | + "الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", |
| 23 | + "الجمعة", "السبت" |
| 24 | +); |
| 25 | + |
| 26 | +/* private */ $wgMonthNamesAr = array( |
| 27 | + "يناير", "فبراير", "مارس", "ابريل", "مايو", "يونيو", |
| 28 | + "يوليو", "أغسطس", "سبتمبر", "اكتوبر", "نوفمبر", |
| 29 | + "ديسمبر" |
| 30 | +); |
| 31 | + |
21 | 32 | class LanguageAr extends LanguageUtf8 { |
22 | 33 | # TODO: TRANSLATION! |
23 | 34 | |
— | — | @@ -46,6 +57,24 @@ |
47 | 58 | return LanguageUtf8::getNsIndex( $text ); |
48 | 59 | } |
49 | 60 | |
| 61 | + function getMonthName( $key ) |
| 62 | + { |
| 63 | + global $wgMonthNamesAr; |
| 64 | + return $wgMonthNamesAr[$key-1]; |
| 65 | + } |
| 66 | + |
| 67 | + function getMonthAbbreviation( $key ) |
| 68 | + { |
| 69 | + /* No abbreviations in Arabic */ |
| 70 | + return $this->getMonthName( $key ); |
| 71 | + } |
| 72 | + |
| 73 | + function getWeekdayName( $key ) |
| 74 | + { |
| 75 | + global $wgWeekdayNamesAr; |
| 76 | + return $wgWeekdayNamesAr[$key-1]; |
| 77 | + } |
| 78 | + |
50 | 79 | function isRTL() { return true; } |
51 | 80 | |
52 | 81 | function getDefaultUserOptions () { |