Merge "Add prefered magic words first"
[lhc/web/wiklou.git] / languages / messages / MessagesEn.php
1 <?php
2 /**
3 * This is the default English localisation file containing language specific
4 * information excluding interface strings, which are stored in JSON files.
5 *
6 * Please see https://www.mediawiki.org/wiki/Localisation for more information.
7 * To improve a translation please visit https://translatewiki.net
8 */
9
10 /**
11 * Fallback language, used for all unspecified messages and behavior. This
12 * is English by default, for all files other than this one.
13 *
14 * Do NOT set this to false in any other message file! Leave the line out to
15 * accept the default fallback to "en".
16 */
17 $fallback = false;
18
19 /**
20 * Is the language written right-to-left?
21 */
22 $rtl = false;
23
24 /**
25 * Should all nouns (not just proper ones) be capitalized?
26 * Enabling this property will add the capitalize-all-nouns class to the <body> tag
27 */
28 $capitalizeAllNouns = false;
29
30 /**
31 * Optional array mapping ASCII digits 0-9 to local digits.
32 */
33 $digitTransformTable = null;
34
35 /**
36 * Transform table for decimal point '.' and thousands separator ','
37 */
38 $separatorTransformTable = null;
39
40 /**
41 * Extra user preferences, which will be shown in Special:Preferences as
42 * checkboxes. Extra settings in derived languages will automatically be
43 * appended to the array of the fallback languages.
44 */
45 $extraUserToggles = [];
46
47 /**
48 * URLs do not specify their encoding. UTF-8 is used by default, but if the
49 * URL is not a valid UTF-8 sequence, we have to try to guess what the real
50 * encoding is. The encoding used in this case is defined below, and must be
51 * supported by iconv().
52 */
53 $fallback8bitEncoding = 'windows-1252';
54
55 /**
56 * To allow "foo[[bar]]" to extend the link over the whole word "foobar"
57 */
58 $linkPrefixExtension = false;
59
60 /**
61 * Namespace names. NS_PROJECT is always set to $wgMetaNamespace after the
62 * settings are loaded, it will be ignored even if you specify it here.
63 *
64 * NS_PROJECT_TALK will be set to $wgMetaNamespaceTalk if that variable is
65 * set, otherwise the string specified here will be used. The string may
66 * contain "$1", which will be replaced by the name of NS_PROJECT. It may
67 * also contain a grammatical transformation, e.g.
68 *
69 * NS_PROJECT_TALK => 'Keskustelu_{{grammar:elative|$1}}'
70 *
71 * Only one grammatical transform may be specified in the string. For
72 * performance reasons, this transformation is done locally by the language
73 * module rather than by the full wikitext parser. As a result, no other
74 * parser features are available.
75 */
76 $namespaceNames = [
77 NS_MEDIA => 'Media',
78 NS_SPECIAL => 'Special',
79 NS_MAIN => '',
80 NS_TALK => 'Talk',
81 NS_USER => 'User',
82 NS_USER_TALK => 'User_talk',
83 # NS_PROJECT set by $wgMetaNamespace
84 NS_PROJECT_TALK => '$1_talk',
85 NS_FILE => 'File',
86 NS_FILE_TALK => 'File_talk',
87 NS_MEDIAWIKI => 'MediaWiki',
88 NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
89 NS_TEMPLATE => 'Template',
90 NS_TEMPLATE_TALK => 'Template_talk',
91 NS_HELP => 'Help',
92 NS_HELP_TALK => 'Help_talk',
93 NS_CATEGORY => 'Category',
94 NS_CATEGORY_TALK => 'Category_talk',
95 ];
96
97 /**
98 * Array of namespace aliases, mapping from name to NS_xxx index
99 */
100 $namespaceAliases = [];
101
102 /**
103 * Array of gender specific. namespace aliases.
104 * Mapping NS_xxx to array of GENDERKEY to alias.
105 * Example:
106 * @code
107 * $namespaceGenderAliases = array(
108 * NS_USER => array( 'male' => 'Male_user', 'female' => 'Female_user' ),
109 * );
110 * @endcode
111 */
112 $namespaceGenderAliases = [];
113
114 /**
115 * A list of date format preference keys, which can be selected in user
116 * preferences. New preference keys can be added, provided they are supported
117 * by the language class's timeanddate(). Only the 5 keys listed below are
118 * supported by the wikitext converter (parser/DateFormatter.php).
119 *
120 * The special key "default" is an alias for either dmy or mdy depending on
121 * $wgAmericanDates
122 */
123 $datePreferences = [
124 'default',
125 'mdy',
126 'dmy',
127 'ymd',
128 'ISO 8601',
129 ];
130
131 /**
132 * The date format to use for generated dates in the user interface.
133 * This may be one of the above date preferences, or the special value
134 * "dmy or mdy", which uses mdy if $wgAmericanDates is true, and dmy
135 * if $wgAmericanDates is false.
136 */
137 $defaultDateFormat = 'dmy or mdy';
138
139 /**
140 * Associative array mapping old numeric date formats, which may still be
141 * stored in user preferences, to the new string formats.
142 */
143 $datePreferenceMigrationMap = [
144 'default',
145 'mdy',
146 'dmy',
147 'ymd'
148 ];
149
150 /**
151 * These are formats for dates generated by MediaWiki (as opposed to the wikitext
152 * DateFormatter). Documentation for the format string can be found in
153 * Language.php, search for sprintfDate.
154 *
155 * This array is automatically inherited by all subclasses. Individual keys can be
156 * overridden.
157 */
158 $dateFormats = [
159 'mdy time' => 'H:i',
160 'mdy date' => 'F j, Y',
161 'mdy monthonly' => 'F Y',
162 'mdy both' => 'H:i, F j, Y',
163 'mdy pretty' => 'F j',
164
165 'dmy time' => 'H:i',
166 'dmy date' => 'j F Y',
167 'dmy monthonly' => 'F Y',
168 'dmy both' => 'H:i, j F Y',
169 'dmy pretty' => 'j F',
170
171 'ymd time' => 'H:i',
172 'ymd date' => 'Y F j',
173 'ymd monthonly' => 'Y F',
174 'ymd both' => 'H:i, Y F j',
175 'ymd pretty' => 'F j',
176
177 'ISO 8601 time' => 'xnH:xni:xns',
178 'ISO 8601 date' => 'xnY-xnm-xnd',
179 'ISO 8601 monthonly' => 'xnY-xnm',
180 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
181 'ISO 8601 pretty' => 'xnm-xnd'
182 ];
183
184 /**
185 * Default list of book sources
186 */
187 $bookstoreList = [
188 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
189 'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
190 'Amazon.com' => 'http://www.amazon.com/gp/search/?field-isbn=$1'
191 ];
192
193 /**
194 * Magic words
195 * Customizable syntax for wikitext and elsewhere.
196 *
197 * IDs must be valid identifiers, they cannot contain hyphens.
198 * CASE is 0 to match all case variants, 1 for case-sensitive
199 *
200 * Note to localisers:
201 * - Include the English magic words as synonyms. This allows people from other
202 * that do no speak the language to contribute more easily.
203 * - Order the aliases so that common aliases are occur before more rarely
204 * used aliases. Tools are expected to use the first alias.
205 *
206 * This array can be modified at runtime with the LanguageGetMagic hook
207 */
208 $magicWords = [
209 # ID CASE SYNONYMS
210 'redirect' => [ 0, '#REDIRECT' ],
211 'notoc' => [ 0, '__NOTOC__' ],
212 'nogallery' => [ 0, '__NOGALLERY__' ],
213 'forcetoc' => [ 0, '__FORCETOC__' ],
214 'toc' => [ 0, '__TOC__' ],
215 'noeditsection' => [ 0, '__NOEDITSECTION__' ],
216 '!' => [ 1, '!' ],
217 'currentmonth' => [ 1, 'CURRENTMONTH', 'CURRENTMONTH2' ],
218 'currentmonth1' => [ 1, 'CURRENTMONTH1' ],
219 'currentmonthname' => [ 1, 'CURRENTMONTHNAME' ],
220 'currentmonthnamegen' => [ 1, 'CURRENTMONTHNAMEGEN' ],
221 'currentmonthabbrev' => [ 1, 'CURRENTMONTHABBREV' ],
222 'currentday' => [ 1, 'CURRENTDAY' ],
223 'currentday2' => [ 1, 'CURRENTDAY2' ],
224 'currentdayname' => [ 1, 'CURRENTDAYNAME' ],
225 'currentyear' => [ 1, 'CURRENTYEAR' ],
226 'currenttime' => [ 1, 'CURRENTTIME' ],
227 'currenthour' => [ 1, 'CURRENTHOUR' ],
228 'localmonth' => [ 1, 'LOCALMONTH', 'LOCALMONTH2' ],
229 'localmonth1' => [ 1, 'LOCALMONTH1' ],
230 'localmonthname' => [ 1, 'LOCALMONTHNAME' ],
231 'localmonthnamegen' => [ 1, 'LOCALMONTHNAMEGEN' ],
232 'localmonthabbrev' => [ 1, 'LOCALMONTHABBREV' ],
233 'localday' => [ 1, 'LOCALDAY' ],
234 'localday2' => [ 1, 'LOCALDAY2' ],
235 'localdayname' => [ 1, 'LOCALDAYNAME' ],
236 'localyear' => [ 1, 'LOCALYEAR' ],
237 'localtime' => [ 1, 'LOCALTIME' ],
238 'localhour' => [ 1, 'LOCALHOUR' ],
239 'numberofpages' => [ 1, 'NUMBEROFPAGES' ],
240 'numberofarticles' => [ 1, 'NUMBEROFARTICLES' ],
241 'numberoffiles' => [ 1, 'NUMBEROFFILES' ],
242 'numberofusers' => [ 1, 'NUMBEROFUSERS' ],
243 'numberofactiveusers' => [ 1, 'NUMBEROFACTIVEUSERS' ],
244 'numberofedits' => [ 1, 'NUMBEROFEDITS' ],
245 'pagename' => [ 1, 'PAGENAME' ],
246 'pagenamee' => [ 1, 'PAGENAMEE' ],
247 'namespace' => [ 1, 'NAMESPACE' ],
248 'namespacee' => [ 1, 'NAMESPACEE' ],
249 'namespacenumber' => [ 1, 'NAMESPACENUMBER' ],
250 'talkspace' => [ 1, 'TALKSPACE' ],
251 'talkspacee' => [ 1, 'TALKSPACEE' ],
252 'subjectspace' => [ 1, 'SUBJECTSPACE', 'ARTICLESPACE' ],
253 'subjectspacee' => [ 1, 'SUBJECTSPACEE', 'ARTICLESPACEE' ],
254 'fullpagename' => [ 1, 'FULLPAGENAME' ],
255 'fullpagenamee' => [ 1, 'FULLPAGENAMEE' ],
256 'subpagename' => [ 1, 'SUBPAGENAME' ],
257 'subpagenamee' => [ 1, 'SUBPAGENAMEE' ],
258 'rootpagename' => [ 1, 'ROOTPAGENAME' ],
259 'rootpagenamee' => [ 1, 'ROOTPAGENAMEE' ],
260 'basepagename' => [ 1, 'BASEPAGENAME' ],
261 'basepagenamee' => [ 1, 'BASEPAGENAMEE' ],
262 'talkpagename' => [ 1, 'TALKPAGENAME' ],
263 'talkpagenamee' => [ 1, 'TALKPAGENAMEE' ],
264 'subjectpagename' => [ 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ],
265 'subjectpagenamee' => [ 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ],
266 'msg' => [ 0, 'MSG:' ],
267 'subst' => [ 0, 'SUBST:' ],
268 'safesubst' => [ 0, 'SAFESUBST:' ],
269 'msgnw' => [ 0, 'MSGNW:' ],
270 'img_thumbnail' => [ 1, 'thumb', 'thumbnail' ],
271 'img_manualthumb' => [ 1, 'thumbnail=$1', 'thumb=$1' ],
272 'img_right' => [ 1, 'right' ],
273 'img_left' => [ 1, 'left' ],
274 'img_none' => [ 1, 'none' ],
275 'img_width' => [ 1, '$1px' ],
276 'img_center' => [ 1, 'center', 'centre' ],
277 'img_framed' => [ 1, 'frame', 'framed', 'enframed' ],
278 'img_frameless' => [ 1, 'frameless' ],
279 'img_lang' => [ 1, 'lang=$1' ],
280 'img_page' => [ 1, 'page=$1', 'page $1' ],
281 'img_upright' => [ 1, 'upright', 'upright=$1', 'upright $1' ],
282 'img_border' => [ 1, 'border' ],
283 'img_baseline' => [ 1, 'baseline' ],
284 'img_sub' => [ 1, 'sub' ],
285 'img_super' => [ 1, 'super', 'sup' ],
286 'img_top' => [ 1, 'top' ],
287 'img_text_top' => [ 1, 'text-top' ],
288 'img_middle' => [ 1, 'middle' ],
289 'img_bottom' => [ 1, 'bottom' ],
290 'img_text_bottom' => [ 1, 'text-bottom' ],
291 'img_link' => [ 1, 'link=$1' ],
292 'img_alt' => [ 1, 'alt=$1' ],
293 'img_class' => [ 1, 'class=$1' ],
294 'int' => [ 0, 'INT:' ],
295 'sitename' => [ 1, 'SITENAME' ],
296 'ns' => [ 0, 'NS:' ],
297 'nse' => [ 0, 'NSE:' ],
298 'localurl' => [ 0, 'LOCALURL:' ],
299 'localurle' => [ 0, 'LOCALURLE:' ],
300 'articlepath' => [ 0, 'ARTICLEPATH' ],
301 'pageid' => [ 0, 'PAGEID' ],
302 'server' => [ 0, 'SERVER' ],
303 'servername' => [ 0, 'SERVERNAME' ],
304 'scriptpath' => [ 0, 'SCRIPTPATH' ],
305 'stylepath' => [ 0, 'STYLEPATH' ],
306 'grammar' => [ 0, 'GRAMMAR:' ],
307 'gender' => [ 0, 'GENDER:' ],
308 'bidi' => [ 0, 'BIDI:' ],
309 'notitleconvert' => [ 0, '__NOTITLECONVERT__', '__NOTC__' ],
310 'nocontentconvert' => [ 0, '__NOCONTENTCONVERT__', '__NOCC__' ],
311 'currentweek' => [ 1, 'CURRENTWEEK' ],
312 'currentdow' => [ 1, 'CURRENTDOW' ],
313 'localweek' => [ 1, 'LOCALWEEK' ],
314 'localdow' => [ 1, 'LOCALDOW' ],
315 'revisionid' => [ 1, 'REVISIONID' ],
316 'revisionday' => [ 1, 'REVISIONDAY' ],
317 'revisionday2' => [ 1, 'REVISIONDAY2' ],
318 'revisionmonth' => [ 1, 'REVISIONMONTH' ],
319 'revisionmonth1' => [ 1, 'REVISIONMONTH1' ],
320 'revisionyear' => [ 1, 'REVISIONYEAR' ],
321 'revisiontimestamp' => [ 1, 'REVISIONTIMESTAMP' ],
322 'revisionuser' => [ 1, 'REVISIONUSER' ],
323 'revisionsize' => [ 1, 'REVISIONSIZE' ],
324 'plural' => [ 0, 'PLURAL:' ],
325 'fullurl' => [ 0, 'FULLURL:' ],
326 'fullurle' => [ 0, 'FULLURLE:' ],
327 'canonicalurl' => [ 0, 'CANONICALURL:' ],
328 'canonicalurle' => [ 0, 'CANONICALURLE:' ],
329 'lcfirst' => [ 0, 'LCFIRST:' ],
330 'ucfirst' => [ 0, 'UCFIRST:' ],
331 'lc' => [ 0, 'LC:' ],
332 'uc' => [ 0, 'UC:' ],
333 'raw' => [ 0, 'RAW:' ],
334 'displaytitle' => [ 1, 'DISPLAYTITLE' ],
335 'rawsuffix' => [ 1, 'R' ],
336 'nocommafysuffix' => [ 0, 'NOSEP' ],
337 'newsectionlink' => [ 1, '__NEWSECTIONLINK__' ],
338 'nonewsectionlink' => [ 1, '__NONEWSECTIONLINK__' ],
339 'currentversion' => [ 1, 'CURRENTVERSION' ],
340 'urlencode' => [ 0, 'URLENCODE:' ],
341 'anchorencode' => [ 0, 'ANCHORENCODE' ],
342 'currenttimestamp' => [ 1, 'CURRENTTIMESTAMP' ],
343 'localtimestamp' => [ 1, 'LOCALTIMESTAMP' ],
344 'directionmark' => [ 1, 'DIRECTIONMARK', 'DIRMARK' ],
345 'language' => [ 0, '#LANGUAGE:' ],
346 'contentlanguage' => [ 1, 'CONTENTLANGUAGE', 'CONTENTLANG' ],
347 'pagesinnamespace' => [ 1, 'PAGESINNAMESPACE:', 'PAGESINNS:' ],
348 'numberofadmins' => [ 1, 'NUMBEROFADMINS' ],
349 'formatnum' => [ 0, 'FORMATNUM' ],
350 'padleft' => [ 0, 'PADLEFT' ],
351 'padright' => [ 0, 'PADRIGHT' ],
352 'special' => [ 0, 'special' ],
353 'speciale' => [ 0, 'speciale' ],
354 'defaultsort' => [ 1, 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ],
355 'filepath' => [ 0, 'FILEPATH:' ],
356 'tag' => [ 0, 'tag' ],
357 'hiddencat' => [ 1, '__HIDDENCAT__' ],
358 'pagesincategory' => [ 1, 'PAGESINCATEGORY', 'PAGESINCAT' ],
359 'pagesize' => [ 1, 'PAGESIZE' ],
360 'index' => [ 1, '__INDEX__' ],
361 'noindex' => [ 1, '__NOINDEX__' ],
362 'numberingroup' => [ 1, 'NUMBERINGROUP', 'NUMINGROUP' ],
363 'staticredirect' => [ 1, '__STATICREDIRECT__' ],
364 'protectionlevel' => [ 1, 'PROTECTIONLEVEL' ],
365 'protectionexpiry' => [ 1, 'PROTECTIONEXPIRY' ],
366 'cascadingsources' => [ 1, 'CASCADINGSOURCES' ],
367 'formatdate' => [ 0, 'formatdate', 'dateformat' ],
368 'url_path' => [ 0, 'PATH' ],
369 'url_wiki' => [ 0, 'WIKI' ],
370 'url_query' => [ 0, 'QUERY' ],
371 'defaultsort_noerror' => [ 0, 'noerror' ],
372 'defaultsort_noreplace' => [ 0, 'noreplace' ],
373 'displaytitle_noerror' => [ 0, 'noerror' ],
374 'displaytitle_noreplace' => [ 0, 'noreplace' ],
375 'pagesincategory_all' => [ 0, 'all' ],
376 'pagesincategory_pages' => [ 0, 'pages' ],
377 'pagesincategory_subcats' => [ 0, 'subcats' ],
378 'pagesincategory_files' => [ 0, 'files' ],
379 ];
380
381 /**
382 * Alternate names of special pages. All names are case-insensitive. The first
383 * listed alias will be used as the default. Aliases from the fallback
384 * localisation (usually English) will be included by default.
385 *
386 * This array may be altered at runtime using the LanguageGetSpecialPageAliases
387 * hook.
388 */
389 $specialPageAliases = [
390 'Activeusers' => [ 'ActiveUsers' ],
391 'Allmessages' => [ 'AllMessages' ],
392 'AllMyUploads' => [ 'AllMyUploads', 'AllMyFiles' ],
393 'Allpages' => [ 'AllPages' ],
394 'ApiHelp' => [ 'ApiHelp' ],
395 'ApiSandbox' => [ 'ApiSandbox' ],
396 'Ancientpages' => [ 'AncientPages' ],
397 'Badtitle' => [ 'Badtitle' ],
398 'Blankpage' => [ 'BlankPage' ],
399 'Block' => [ 'Block', 'BlockIP', 'BlockUser' ],
400 'Booksources' => [ 'BookSources' ],
401 'BotPasswords' => [ 'BotPasswords' ],
402 'BrokenRedirects' => [ 'BrokenRedirects' ],
403 'Categories' => [ 'Categories' ],
404 'ChangeContentModel' => [ 'ChangeContentModel' ],
405 'ChangeEmail' => [ 'ChangeEmail' ],
406 'ChangePassword' => [ 'ChangePassword', 'ResetPass', 'ResetPassword' ],
407 'ComparePages' => [ 'ComparePages' ],
408 'Confirmemail' => [ 'ConfirmEmail' ],
409 'Contributions' => [ 'Contributions', 'Contribs' ],
410 'CreateAccount' => [ 'CreateAccount' ],
411 'Deadendpages' => [ 'DeadendPages' ],
412 'DeletedContributions' => [ 'DeletedContributions' ],
413 'Diff' => [ 'Diff' ],
414 'DoubleRedirects' => [ 'DoubleRedirects' ],
415 'EditTags' => [ 'EditTags' ],
416 'EditWatchlist' => [ 'EditWatchlist' ],
417 'Emailuser' => [ 'EmailUser', 'Email' ],
418 'ExpandTemplates' => [ 'ExpandTemplates' ],
419 'Export' => [ 'Export' ],
420 'Fewestrevisions' => [ 'FewestRevisions' ],
421 'FileDuplicateSearch' => [ 'FileDuplicateSearch' ],
422 'Filepath' => [ 'FilePath' ],
423 'Import' => [ 'Import' ],
424 'Invalidateemail' => [ 'InvalidateEmail' ],
425 'JavaScriptTest' => [ 'JavaScriptTest' ],
426 'BlockList' => [ 'BlockList', 'ListBlocks', 'IPBlockList' ],
427 'LinkSearch' => [ 'LinkSearch' ],
428 'Listadmins' => [ 'ListAdmins' ],
429 'Listbots' => [ 'ListBots' ],
430 'Listfiles' => [ 'ListFiles', 'FileList', 'ImageList' ],
431 'Listgrouprights' => [ 'ListGroupRights', 'UserGroupRights' ],
432 'Listgrants' => [ 'ListGrants' ],
433 'Listredirects' => [ 'ListRedirects' ],
434 'ListDuplicatedFiles' => [ 'ListDuplicatedFiles', 'ListFileDuplicates' ],
435 'Listusers' => [ 'ListUsers', 'UserList' ],
436 'Lockdb' => [ 'LockDB' ],
437 'Log' => [ 'Log', 'Logs' ],
438 'Lonelypages' => [ 'LonelyPages', 'OrphanedPages' ],
439 'Longpages' => [ 'LongPages' ],
440 'MediaStatistics' => [ 'MediaStatistics' ],
441 'MergeHistory' => [ 'MergeHistory' ],
442 'MIMEsearch' => [ 'MIMESearch' ],
443 'Mostcategories' => [ 'MostCategories' ],
444 'Mostimages' => [ 'MostLinkedFiles', 'MostFiles', 'MostImages' ],
445 'Mostinterwikis' => [ 'MostInterwikis' ],
446 'Mostlinked' => [ 'MostLinkedPages', 'MostLinked' ],
447 'Mostlinkedcategories' => [ 'MostLinkedCategories', 'MostUsedCategories' ],
448 'Mostlinkedtemplates' => [ 'MostTranscludedPages', 'MostLinkedTemplates', 'MostUsedTemplates' ],
449 'Mostrevisions' => [ 'MostRevisions' ],
450 'Movepage' => [ 'MovePage' ],
451 'Mycontributions' => [ 'MyContributions' ],
452 'MyLanguage' => [ 'MyLanguage' ],
453 'Mypage' => [ 'MyPage' ],
454 'Mytalk' => [ 'MyTalk' ],
455 'Myuploads' => [ 'MyUploads', 'MyFiles' ],
456 'Newimages' => [ 'NewFiles', 'NewImages' ],
457 'Newpages' => [ 'NewPages' ],
458 'PagesWithProp' => [ 'PagesWithProp', 'Pageswithprop', 'PagesByProp', 'Pagesbyprop' ],
459 'PageLanguage' => [ 'PageLanguage' ],
460 'PasswordReset' => [ 'PasswordReset' ],
461 'PermanentLink' => [ 'PermanentLink', 'PermaLink' ],
462 'Preferences' => [ 'Preferences' ],
463 'Prefixindex' => [ 'PrefixIndex' ],
464 'Protectedpages' => [ 'ProtectedPages' ],
465 'Protectedtitles' => [ 'ProtectedTitles' ],
466 'Randompage' => [ 'Random', 'RandomPage' ],
467 'RandomInCategory' => [ 'RandomInCategory' ],
468 'Randomredirect' => [ 'RandomRedirect' ],
469 'Randomrootpage' => [ 'RandomRootpage' ],
470 'Recentchanges' => [ 'RecentChanges' ],
471 'Recentchangeslinked' => [ 'RecentChangesLinked', 'RelatedChanges' ],
472 'Redirect' => [ 'Redirect' ],
473 'ResetTokens' => [ 'ResetTokens' ],
474 'Revisiondelete' => [ 'RevisionDelete' ],
475 'RunJobs' => [ 'RunJobs' ],
476 'Search' => [ 'Search' ],
477 'Shortpages' => [ 'ShortPages' ],
478 'Specialpages' => [ 'SpecialPages' ],
479 'Statistics' => [ 'Statistics' ],
480 'Tags' => [ 'Tags' ],
481 'TrackingCategories' => [ 'TrackingCategories' ],
482 'Unblock' => [ 'Unblock' ],
483 'Uncategorizedcategories' => [ 'UncategorizedCategories' ],
484 'Uncategorizedimages' => [ 'UncategorizedFiles', 'UncategorizedImages' ],
485 'Uncategorizedpages' => [ 'UncategorizedPages' ],
486 'Uncategorizedtemplates' => [ 'UncategorizedTemplates' ],
487 'Undelete' => [ 'Undelete' ],
488 'Unlockdb' => [ 'UnlockDB' ],
489 'Unusedcategories' => [ 'UnusedCategories' ],
490 'Unusedimages' => [ 'UnusedFiles', 'UnusedImages' ],
491 'Unusedtemplates' => [ 'UnusedTemplates' ],
492 'Unwatchedpages' => [ 'UnwatchedPages' ],
493 'Upload' => [ 'Upload' ],
494 'UploadStash' => [ 'UploadStash' ],
495 'Userlogin' => [ 'UserLogin', 'Login' ],
496 'Userlogout' => [ 'UserLogout', 'Logout' ],
497 'Userrights' => [ 'UserRights', 'MakeSysop', 'MakeBot' ],
498 'Version' => [ 'Version' ],
499 'Wantedcategories' => [ 'WantedCategories' ],
500 'Wantedfiles' => [ 'WantedFiles' ],
501 'Wantedpages' => [ 'WantedPages', 'BrokenLinks' ],
502 'Wantedtemplates' => [ 'WantedTemplates' ],
503 'Watchlist' => [ 'Watchlist' ],
504 'Whatlinkshere' => [ 'WhatLinksHere' ],
505 'Withoutinterwiki' => [ 'WithoutInterwiki' ],
506 ];
507
508 /**
509 * Regular expression matching the "link trail", e.g. "ed" in [[Toast]]ed, as
510 * the first group, and the remainder of the string as the second group.
511 */
512 $linkTrail = '/^([a-z]+)(.*)$/sD';
513
514 /**
515 * Regular expression charset matching the "link prefix", e.g. "foo" in
516 * foo[[bar]]. UTF-8 characters may be used.
517 */
518 $linkPrefixCharset = 'a-zA-Z\\x{80}-\\x{10ffff}';
519
520 /**
521 * List of filenames for some ui images that can be overridden per language
522 * basis if needed.
523 */
524 $imageFiles = [
525 'button-bold' => 'en/button_bold.png',
526 'button-italic' => 'en/button_italic.png',
527 'button-link' => 'en/button_link.png',
528 'button-extlink' => 'en/button_extlink.png',
529 'button-headline' => 'en/button_headline.png',
530 'button-image' => 'en/button_image.png',
531 'button-media' => 'en/button_media.png',
532 'button-nowiki' => 'en/button_nowiki.png',
533 'button-sig' => 'en/button_sig.png',
534 'button-hr' => 'en/button_hr.png',
535 ];
536
537 /**
538 * A list of messages to preload for each request.
539 * Here we add messages that are needed for a typical anonymous parser cache hit.
540 */
541 $preloadedMessages = [
542 'aboutpage',
543 'aboutsite',
544 'accesskey-ca-edit',
545 'accesskey-ca-history',
546 'accesskey-ca-nstab-main',
547 'accesskey-ca-talk',
548 'accesskey-ca-viewsource',
549 'accesskey-n-currentevents',
550 'accesskey-n-help',
551 'accesskey-n-mainpage-description',
552 'accesskey-n-portal',
553 'accesskey-n-randompage',
554 'accesskey-n-recentchanges',
555 'accesskey-p-logo',
556 'accesskey-pt-login',
557 'accesskey-pt-createaccount',
558 'accesskey-search',
559 'accesskey-search-fulltext',
560 'accesskey-search-go',
561 'accesskey-t-info',
562 'accesskey-t-permalink',
563 'accesskey-t-print',
564 'accesskey-t-recentchangeslinked',
565 'accesskey-t-specialpages',
566 'accesskey-t-whatlinkshere',
567 'actions',
568 'anonnotice',
569 'brackets',
570 'comma-separator',
571 'currentevents',
572 'currentevents-url',
573 'disclaimerpage',
574 'disclaimers',
575 'edit',
576 'editsection',
577 'editsectionhint',
578 'help',
579 'helppage',
580 'interlanguage-link-title',
581 'jumpto',
582 'jumptonavigation',
583 'jumptosearch',
584 'lastmodifiedat',
585 'mainpage',
586 'mainpage-description',
587 'mainpage-nstab',
588 'namespaces',
589 'navigation',
590 'nav-login-createaccount',
591 'nstab-main',
592 'opensearch-desc',
593 'pagecategories',
594 'pagecategorieslink',
595 'pagetitle',
596 'pagetitle-view-mainpage',
597 'permalink',
598 'personaltools',
599 'portal',
600 'portal-url',
601 'printableversion',
602 'privacy',
603 'privacypage',
604 'randompage',
605 'randompage-url',
606 'recentchanges',
607 'recentchangeslinked-toolbox',
608 'recentchanges-url',
609 'retrievedfrom',
610 'search',
611 'searcharticle',
612 'searchbutton',
613 'searchsuggest-search',
614 'sidebar',
615 'navigation-heading',
616 'site-atom-feed',
617 'sitenotice',
618 'specialpages',
619 'tagline',
620 'talk',
621 'toolbox',
622 'tooltip-ca-edit',
623 'tooltip-ca-history',
624 'tooltip-ca-nstab-main',
625 'tooltip-ca-talk',
626 'tooltip-ca-viewsource',
627 'tooltip-n-currentevents',
628 'tooltip-n-help',
629 'tooltip-n-mainpage-description',
630 'tooltip-n-portal',
631 'tooltip-n-randompage',
632 'tooltip-n-recentchanges',
633 'tooltip-p-logo',
634 'tooltip-pt-login',
635 'tooltip-pt-createaccount',
636 'tooltip-search',
637 'tooltip-search-fulltext',
638 'tooltip-search-go',
639 'tooltip-t-info',
640 'tooltip-t-permalink',
641 'tooltip-t-print',
642 'tooltip-t-recentchangeslinked',
643 'tooltip-t-specialpages',
644 'tooltip-t-whatlinkshere',
645 'variants',
646 'vector-view-edit',
647 'vector-view-history',
648 'vector-view-view',
649 'viewcount',
650 'views',
651 'whatlinkshere',
652 'word-separator',
653 ];