* (bug 9712) Use Arabic comma in date/time formats for Arabic and Farsi
[lhc/web/wiklou.git] / languages / messages / MessagesFa.php
index 515bf26..bd86321 100644 (file)
@@ -54,6 +54,69 @@ $defaultUserOptionOverrides = array(
        # Underlines seriously harm legibility. Force off:
        'underline' => 0,
 );
+
+
+/**
+ * A list of date format preference keys which can be selected in user 
+ * preferences. New preference keys can be added, provided they are supported
+ * by the language class's timeanddate(). Only the 5 keys listed below are 
+ * supported by the wikitext converter (DateFormatter.php).
+ *
+ * The special key "default" is an alias for either dmy or mdy depending on 
+ * $wgAmericanDates
+ */
+$datePreferences = array(
+       'default',
+       'mdy',
+       'dmy',
+       'ymd',
+       'ISO 8601',
+);
+
+/**
+ * The date format to use for generated dates in the user interface.
+ * This may be one of the above date preferences, or the special value 
+ * "dmy or mdy", which uses mdy if $wgAmericanDates is true, and dmy 
+ * if $wgAmericanDates is false.
+ */
+$defaultDateFormat = 'dmy or mdy';
+
+/**
+ * Associative array mapping old numeric date formats, which may still be 
+ * stored in user preferences, to the new string formats.
+ */
+$datePreferenceMigrationMap = array(
+       'default',
+       'mdy',
+       'dmy',
+       'ymd'
+);
+
+/**
+ * These are formats for dates generated by MediaWiki (as opposed to the wikitext
+ * DateFormatter). Documentation for the format string can be found in 
+ * Language.php, search for sprintfDate. 
+ *
+ * This array is automatically inherited by all subclasses. Individual keys can be
+ * overridden.
+ */
+$dateFormats = array(
+       'mdy time' => 'H:i',
+       'mdy date' => 'xg j، Y', # Arabic comma
+       'mdy both' => 'H:i، xg j، Y', # Arabic comma
+
+       'dmy time' => 'H:i',
+       'dmy date' => 'j xg Y',
+       'dmy both' => 'H:i، j xg Y', # Arabic comma
+
+       'ymd time' => 'H:i',
+       'ymd date' => 'Y xg j',
+       'ymd both' => 'H:i، Y xg j', # Arabic comma
+
+       'ISO 8601 time' => 'xnH:xni:xns',
+       'ISO 8601 date' => 'xnY-xnm-xnd',
+       'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
+);
 $linkTrail = "/^([a-z]+)(.*)\$/sD"; /* This may need to be changed --RP */
 
 $messages = array(