aboutsummaryrefslogtreecommitdiffstats
path: root/languages/LanguageAr.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/LanguageAr.php')
-rw-r--r--languages/LanguageAr.php31
1 files changed, 30 insertions, 1 deletions
diff --git a/languages/LanguageAr.php b/languages/LanguageAr.php
index a016e3601006..25eb29df9d9b 100644
--- a/languages/LanguageAr.php
+++ b/languages/LanguageAr.php
@@ -2,7 +2,7 @@
# See language.doc
include_once("LanguageUtf8.php");
-$wgNamespaceNamesAr = array(
+/* private */ $wgNamespaceNamesAr = array(
"-2" => "ملف",
"-1" => "خاص",
"0" => "",
@@ -17,6 +17,17 @@ $wgNamespaceNamesAr = array(
"9" => "MediaWiki_talk",
);
+/* private */ $wgWeekdayNamesAr = array(
+ "الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس",
+ "الجمعة", "السبت"
+);
+
+/* private */ $wgMonthNamesAr = array(
+ "يناير", "فبراير", "مارس", "ابريل", "مايو", "يونيو",
+ "يوليو", "أغسطس", "سبتمبر", "اكتوبر", "نوفمبر",
+ "ديسمبر"
+);
+
class LanguageAr extends LanguageUtf8 {
# TODO: TRANSLATION!
@@ -46,6 +57,24 @@ class LanguageAr extends LanguageUtf8 {
return LanguageUtf8::getNsIndex( $text );
}
+ function getMonthName( $key )
+ {
+ global $wgMonthNamesAr;
+ return $wgMonthNamesAr[$key-1];
+ }
+
+ function getMonthAbbreviation( $key )
+ {
+ /* No abbreviations in Arabic */
+ return $this->getMonthName( $key );
+ }
+
+ function getWeekdayName( $key )
+ {
+ global $wgWeekdayNamesAr;
+ return $wgWeekdayNamesAr[$key-1];
+ }
+
function isRTL() { return true; }
function getDefaultUserOptions () {