MediaWiki master
MessagesApc.php
Go to the documentation of this file.
1<?php
8$fallback = 'ar';
9
10$rtl = true;
11
13 NS_MEDIA => 'ميديا',
14 NS_SPECIAL => 'مميز',
15 NS_TALK => 'نقاش',
16 NS_USER => 'مستخدم',
17 NS_USER_TALK => 'نقاش_المستخدم',
18 NS_PROJECT_TALK => 'نقاش_$1',
19 NS_FILE => 'فايل',
20 NS_FILE_TALK => 'نقاش_الفايل',
21 NS_MEDIAWIKI => 'ميدياويكي',
22 NS_MEDIAWIKI_TALK => 'نقاش_ميدياويكي',
23 NS_TEMPLATE => 'قالب',
24 NS_TEMPLATE_TALK => 'نقاش_القالب',
25 NS_HELP => 'مساعدة',
26 NS_HELP_TALK => 'نقاش_المساعدة',
27 NS_CATEGORY => 'تصنيف',
28 NS_CATEGORY_TALK => 'نقاش_التصنيف',
29];
30
32 NS_USER => [
33 'male' => 'مستخدم',
34 'female' => 'مستخدمة'
35 ],
36 NS_USER_TALK => [
37 'male' => 'نقاش_المستخدم',
38 'female' => 'نقاش_المستخدمة'
39 ],
40];
41
52 'default',
53 'mdy',
54 'dmy',
55 'ymd',
56 'hijri',
57 'ISO 8601',
58 'jMY',
59];
60
70 'mdy time' => 'H:i',
71 'mdy date' => 'xg j، Y', # Arabic comma
72 'mdy both' => 'H:i، xg j، Y', # Arabic comma
73
74 'dmy time' => 'H:i',
75 'dmy date' => 'j xg Y',
76 'dmy both' => 'H:i، j xg Y', # Arabic comma
77
78 'ymd time' => 'H:i',
79 'ymd date' => 'Y xg j',
80 'ymd both' => 'H:i، Y xg j', # Arabic comma
81
82 'hijri time' => 'H:i',
83 'hijri date' => 'xmj xmF xmY',
84 'hijri both' => 'H:i، xmj xmF xmY',
85
86 'ISO 8601 time' => 'xnH:xni:xns',
87 'ISO 8601 date' => 'xnY-xnm-xnd',
88 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
89
90 'jMY time' => 'H:i',
91 'jMY date' => 'j M Y',
92 'jMY both' => 'H:i، j M Y', # Arabic comma
93];
94
95// Reset to (Western) Arabic digits
96// https://phabricator.wikimedia.org/T382781
98 '0' => '0',
99 '1' => '1',
100 '2' => '2',
101 '3' => '3',
102 '4' => '4',
103 '5' => '5',
104 '6' => '6',
105 '7' => '7',
106 '8' => '8',
107 '9' => '9',
108 // T382781: PHP >= 8.4 converts natively to Arabic digits, so we need to convert back
109 '٠' => '0', # U+0660
110 '١' => '1', # U+0661
111 '٢' => '2', # U+0662
112 '٣' => '3', # U+0663
113 '٤' => '4', # U+0664
114 '٥' => '5', # U+0665
115 '٦' => '6', # U+0666
116 '٧' => '7', # U+0667
117 '٨' => '8', # U+0668
118 '٩' => '9', # U+0669
119];
120
122 '.' => '.',
123 ',' => ',',
124];
125
127
129 NS_MEDIA => 'ميديا',
130 NS_SPECIAL => 'خاص',
131 NS_TALK => 'نقاش',
132 NS_USER => 'مستخدم',
133 NS_USER_TALK => 'نقاش_المستخدم',
134 NS_PROJECT_TALK => 'نقاش_$1',
135 NS_FILE => 'ملف',
136 NS_FILE_TALK => 'نقاش_الملف',
137 NS_MEDIAWIKI => 'ميدياويكي',
138 NS_MEDIAWIKI_TALK => 'نقاش_ميدياويكي',
139 NS_TEMPLATE => 'قالب',
140 NS_TEMPLATE_TALK => 'نقاش_القالب',
141 NS_HELP => 'مساعدة',
142 NS_HELP_TALK => 'نقاش_المساعدة',
143 NS_CATEGORY => 'تصنيف',
144 NS_CATEGORY_TALK => 'نقاش_التصنيف',
145];
146
148 NS_USER => [
149 'male' => 'مستخدم',
150 'female' => 'مستخدمة'
151 ],
152 NS_USER_TALK => [
153 'male' => 'نقاش_المستخدم',
154 'female' => 'نقاش_المستخدمة'
155 ],
156];
157
159
165// The prefix set also needs to include diacritics, as these can be added
166// to letters, but keep them as letters.
167// These are from the "Extend" group in Unicode:
168// https://www.unicode.org/Public/13.0.0/ucd/auxiliary/WordBreakProperty.txt
170 '\\x{0610}-\\x{061A}' .
171 '\\x{064B}-\\x{065F}' .
172 '\\x{0670}' .
173 '\\x{06D6}-\\x{06DC}' .
174 '\\x{06DF}-\\x{06E4}' .
175 '\\x{06E7}' .
176 '\\x{06E8}' .
177 '\\x{06EA}-\\x{06ED}';
178
179$linkTrail = '/^([a-zء-ي' . $arabicCombiningDiacritics . ']+)(.*)$/sDu';
182
const NS_HELP
Definition Defines.php:63
const NS_USER
Definition Defines.php:53
const NS_FILE
Definition Defines.php:57
const NS_MEDIAWIKI_TALK
Definition Defines.php:60
const NS_PROJECT_TALK
Definition Defines.php:56
const NS_MEDIAWIKI
Definition Defines.php:59
const NS_TEMPLATE
Definition Defines.php:61
const NS_SPECIAL
Definition Defines.php:40
const NS_FILE_TALK
Definition Defines.php:58
const NS_HELP_TALK
Definition Defines.php:64
const NS_CATEGORY_TALK
Definition Defines.php:66
const NS_MEDIA
Definition Defines.php:39
const NS_TALK
Definition Defines.php:52
const NS_USER_TALK
Definition Defines.php:54
const NS_CATEGORY
Definition Defines.php:65
const NS_TEMPLATE_TALK
Definition Defines.php:62
$linkPrefixExtension
$fallback
$namespaceGenderAliases
$dateFormats
These are formats for dates generated by MediaWiki (as opposed to the wikitext DateFormatter).
$linkPrefixCharset
$linkTrail
$datePreferences
A list of date format preference keys which can be selected in user preferences.
$namespaceNames
$separatorTransformTable
$digitGroupingPattern
$arabicCombiningDiacritics
Regular expression matching the "link trail", e.g.
$digitTransformTable
$rtl
$numberingSystem