r21748 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21747‎ | r21748 | r21749 >
Date:10:14, 1 May 2007
Author:raymond
Status:old
Tags:
Comment:
* (bug 9712) Use Arabic comma in date/time formats for Arabic and Farsi
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFa.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/messages/MessagesFa.php
@@ -54,6 +54,69 @@
5555 # Underlines seriously harm legibility. Force off:
5656 'underline' => 0,
5757 );
 58+
 59+
 60+/**
 61+ * A list of date format preference keys which can be selected in user
 62+ * preferences. New preference keys can be added, provided they are supported
 63+ * by the language class's timeanddate(). Only the 5 keys listed below are
 64+ * supported by the wikitext converter (DateFormatter.php).
 65+ *
 66+ * The special key "default" is an alias for either dmy or mdy depending on
 67+ * $wgAmericanDates
 68+ */
 69+$datePreferences = array(
 70+ 'default',
 71+ 'mdy',
 72+ 'dmy',
 73+ 'ymd',
 74+ 'ISO 8601',
 75+);
 76+
 77+/**
 78+ * The date format to use for generated dates in the user interface.
 79+ * This may be one of the above date preferences, or the special value
 80+ * "dmy or mdy", which uses mdy if $wgAmericanDates is true, and dmy
 81+ * if $wgAmericanDates is false.
 82+ */
 83+$defaultDateFormat = 'dmy or mdy';
 84+
 85+/**
 86+ * Associative array mapping old numeric date formats, which may still be
 87+ * stored in user preferences, to the new string formats.
 88+ */
 89+$datePreferenceMigrationMap = array(
 90+ 'default',
 91+ 'mdy',
 92+ 'dmy',
 93+ 'ymd'
 94+);
 95+
 96+/**
 97+ * These are formats for dates generated by MediaWiki (as opposed to the wikitext
 98+ * DateFormatter). Documentation for the format string can be found in
 99+ * Language.php, search for sprintfDate.
 100+ *
 101+ * This array is automatically inherited by all subclasses. Individual keys can be
 102+ * overridden.
 103+ */
 104+$dateFormats = array(
 105+ 'mdy time' => 'H:i',
 106+ 'mdy date' => 'xg j، Y', # Arabic comma
 107+ 'mdy both' => 'H:i، xg j، Y', # Arabic comma
 108+
 109+ 'dmy time' => 'H:i',
 110+ 'dmy date' => 'j xg Y',
 111+ 'dmy both' => 'H:i، j xg Y', # Arabic comma
 112+
 113+ 'ymd time' => 'H:i',
 114+ 'ymd date' => 'Y xg j',
 115+ 'ymd both' => 'H:i، Y xg j', # Arabic comma
 116+
 117+ 'ISO 8601 time' => 'xnH:xni:xns',
 118+ 'ISO 8601 date' => 'xnY-xnm-xnd',
 119+ 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
 120+);
58121 $linkTrail = "/^([a-z]+)(.*)\$/sD"; /* This may need to be changed --RP */
59122
60123 $messages = array(
Index: trunk/phase3/languages/messages/MessagesAr.php
@@ -14,7 +14,68 @@
1515 # Underlines seriously harm legibility. Force off:
1616 'underline' => 0,
1717 );
 18+/**
 19+ * A list of date format preference keys which can be selected in user
 20+ * preferences. New preference keys can be added, provided they are supported
 21+ * by the language class's timeanddate(). Only the 5 keys listed below are
 22+ * supported by the wikitext converter (DateFormatter.php).
 23+ *
 24+ * The special key "default" is an alias for either dmy or mdy depending on
 25+ * $wgAmericanDates
 26+ */
 27+$datePreferences = array(
 28+ 'default',
 29+ 'mdy',
 30+ 'dmy',
 31+ 'ymd',
 32+ 'ISO 8601',
 33+);
1834
 35+/**
 36+ * The date format to use for generated dates in the user interface.
 37+ * This may be one of the above date preferences, or the special value
 38+ * "dmy or mdy", which uses mdy if $wgAmericanDates is true, and dmy
 39+ * if $wgAmericanDates is false.
 40+ */
 41+$defaultDateFormat = 'dmy or mdy';
 42+
 43+/**
 44+ * Associative array mapping old numeric date formats, which may still be
 45+ * stored in user preferences, to the new string formats.
 46+ */
 47+$datePreferenceMigrationMap = array(
 48+ 'default',
 49+ 'mdy',
 50+ 'dmy',
 51+ 'ymd'
 52+);
 53+
 54+/**
 55+ * These are formats for dates generated by MediaWiki (as opposed to the wikitext
 56+ * DateFormatter). Documentation for the format string can be found in
 57+ * Language.php, search for sprintfDate.
 58+ *
 59+ * This array is automatically inherited by all subclasses. Individual keys can be
 60+ * overridden.
 61+ */
 62+$dateFormats = array(
 63+ 'mdy time' => 'H:i',
 64+ 'mdy date' => 'xg j، Y', # Arabic comma
 65+ 'mdy both' => 'H:i، xg j، Y', # Arabic comma
 66+
 67+ 'dmy time' => 'H:i',
 68+ 'dmy date' => 'j xg Y',
 69+ 'dmy both' => 'H:i، j xg Y', # Arabic comma
 70+
 71+ 'ymd time' => 'H:i',
 72+ 'ymd date' => 'Y xg j',
 73+ 'ymd both' => 'H:i، Y xg j', # Arabic comma
 74+
 75+ 'ISO 8601 time' => 'xnH:xni:xns',
 76+ 'ISO 8601 date' => 'xnY-xnm-xnd',
 77+ 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
 78+);
 79+
1980 $namespaceNames = array(
2081 NS_MEDIA => 'ملف',
2182 NS_SPECIAL => 'خاص',
@@ -1283,7 +1344,7 @@
12841345
12851346 # Watchlist
12861347 'watchlist' => 'قائمة مراقبتي',
1287 -'mywatchlist' => 'قائمة مراقبتي',
 1348+'mywatchlist' => 'قائمة مراقبتي',
12881349 'watchlistfor' => "(ل '''$1''')",
12891350 'nowatchlist' => 'لا يوجد شيء في قائمة مراقبتك.',
12901351 'watchlistanontext' => 'الرجاء $1 لعرض أو تعديل الصفحات في قائمة مراقبتك.',
@@ -1474,7 +1535,7 @@
14751536 # Contributions
14761537 'contributions' => 'مساهمات المستخدم',
14771538 'mycontris' => 'مساهماتي',
1478 -'contribsub2' => 'للمستخدم $1 ($2)',
 1539+'contribsub2' => 'للمستخدم $1 ($2)',
14791540 'nocontribs' => 'لا توجد تعديلات تطابق هذه المحددات.',
14801541 'ucnote' => 'في الأسفل ستجد آخر <b>$1</b> تعديل لهذا المستخدم في <b>$2</b> أيام.',
14811542 'uclinks' => 'عرض آخر $1 تعديل; عرض آخر $2 يوم.',
@@ -1519,12 +1580,6 @@
15201581 'ipbexpiry' => 'مدّة المنع',
15211582 'ipbreason' => 'السبب',
15221583 'ipbreasonotherlist' => 'سبب آخر',
1523 -'ipbreason-list' => '*#أسباب المنع عناوين الأيبي
1524 -*تخريب
1525 -*سخام وصلات
1526 -*#أسباب المنع للمستخدمين المسجلين
1527 -*سباب
1528 -*دمية جورب',
15291584 'ipbanononly' => 'فقط المستخدمين المجهولين',
15301585 'ipbcreateaccount' => 'منع إنشاء حساب جديد',
15311586 'ipbenableautoblock' => 'امنع العناوين المستخدمة بواسطة هذا المستخدم.',
@@ -1566,7 +1621,6 @@
15671622 'unblocklogentry' => 'إزالة منع $1',
15681623 'block-log-flags-anononly' => 'المستخدمون المجهولون فقط',
15691624 'block-log-flags-nocreate' => 'منع إنشاء حساب',
1570 -'block-log-flags-autoblock' => 'منع تلقائي',
15711625 'range_block_disabled' => 'إمكانية الإداري لمنع نطاق معطلة.',
15721626 'ipb_expiry_invalid' => 'تاريخ انتهاء المنع المدخل غير صحيح.',
15731627 'ipb_already_blocked' => 'سبق منع "$1"',
@@ -2024,6 +2078,15 @@
20252079 'livepreview-error' => 'لم ينجح الاتصال: $1 "$2"
20262080 حاول تجربة العرض العادي.',
20272081
 2082+# Unknown messages
 2083+'block-log-flags-autoblock' => 'منع تلقائي',
 2084+'ipbreason-list' => '*#أسباب المنع عناوين الأيبي
 2085+*تخريب
 2086+*سخام وصلات
 2087+*#أسباب المنع للمستخدمين المسجلين
 2088+*سباب
 2089+*دمية جورب',
 2090+
20282091 );
20292092
20302093 ?>
Index: trunk/phase3/RELEASE-NOTES
@@ -372,8 +372,8 @@
373373 - don't emit TOC when there are no visible headers
374374 * (bug 7629) Fix $wgBrowserBlackList to avoid false positive on MSIE
375375 when certain plugins are present which alter the user agent
 376+* (bug 9712) Use Arabic comma in date/time formats for Arabic and Farsi
376377
377 -
378378 == Maintenance ==
379379
380380 * New script maintenance/language/checkExtensioni18n.php used to check i18n