]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - languages/messages/MessagesEn.php
MediaWiki 1.30.2
[autoinstalls/mediawiki.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 = [
108  *   NS_USER => [ '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' => 'https://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
202  *     other wikis that do not speak the language to contribute more easily.
203  *   - The first alias listed MUST be the preferred alias in that language.
204  *     Tools (like Visual Editor) are expected to use the first listed alias
205  *     when editing or creating new content.
206  *   - Order the other aliases so that common aliases occur before more rarely
207  *     used aliases. The aliases SHOULD be sorted by the following convention:
208  *     1. Local first, English last, then
209  *     2. Most common first, least common last.
210  *
211  * This array can be modified at runtime with the LanguageGetMagic hook
212  */
213 $magicWords = [
214 #   ID                               CASE  SYNONYMS
215         'redirect'                => [ 0, '#REDIRECT' ],
216         'notoc'                   => [ 0, '__NOTOC__' ],
217         'nogallery'               => [ 0, '__NOGALLERY__' ],
218         'forcetoc'                => [ 0, '__FORCETOC__' ],
219         'toc'                     => [ 0, '__TOC__' ],
220         'noeditsection'           => [ 0, '__NOEDITSECTION__' ],
221         '!'                       => [ 1, '!' ],
222         'currentmonth'            => [ 1, 'CURRENTMONTH', 'CURRENTMONTH2' ],
223         'currentmonth1'           => [ 1, 'CURRENTMONTH1' ],
224         'currentmonthname'        => [ 1, 'CURRENTMONTHNAME' ],
225         'currentmonthnamegen'     => [ 1, 'CURRENTMONTHNAMEGEN' ],
226         'currentmonthabbrev'      => [ 1, 'CURRENTMONTHABBREV' ],
227         'currentday'              => [ 1, 'CURRENTDAY' ],
228         'currentday2'             => [ 1, 'CURRENTDAY2' ],
229         'currentdayname'          => [ 1, 'CURRENTDAYNAME' ],
230         'currentyear'             => [ 1, 'CURRENTYEAR' ],
231         'currenttime'             => [ 1, 'CURRENTTIME' ],
232         'currenthour'             => [ 1, 'CURRENTHOUR' ],
233         'localmonth'              => [ 1, 'LOCALMONTH', 'LOCALMONTH2' ],
234         'localmonth1'             => [ 1, 'LOCALMONTH1' ],
235         'localmonthname'          => [ 1, 'LOCALMONTHNAME' ],
236         'localmonthnamegen'       => [ 1, 'LOCALMONTHNAMEGEN' ],
237         'localmonthabbrev'        => [ 1, 'LOCALMONTHABBREV' ],
238         'localday'                => [ 1, 'LOCALDAY' ],
239         'localday2'               => [ 1, 'LOCALDAY2' ],
240         'localdayname'            => [ 1, 'LOCALDAYNAME' ],
241         'localyear'               => [ 1, 'LOCALYEAR' ],
242         'localtime'               => [ 1, 'LOCALTIME' ],
243         'localhour'               => [ 1, 'LOCALHOUR' ],
244         'numberofpages'           => [ 1, 'NUMBEROFPAGES' ],
245         'numberofarticles'        => [ 1, 'NUMBEROFARTICLES' ],
246         'numberoffiles'           => [ 1, 'NUMBEROFFILES' ],
247         'numberofusers'           => [ 1, 'NUMBEROFUSERS' ],
248         'numberofactiveusers'     => [ 1, 'NUMBEROFACTIVEUSERS' ],
249         'numberofedits'           => [ 1, 'NUMBEROFEDITS' ],
250         'pagename'                => [ 1, 'PAGENAME' ],
251         'pagenamee'               => [ 1, 'PAGENAMEE' ],
252         'namespace'               => [ 1, 'NAMESPACE' ],
253         'namespacee'              => [ 1, 'NAMESPACEE' ],
254         'namespacenumber'         => [ 1, 'NAMESPACENUMBER' ],
255         'talkspace'               => [ 1, 'TALKSPACE' ],
256         'talkspacee'              => [ 1, 'TALKSPACEE' ],
257         'subjectspace'            => [ 1, 'SUBJECTSPACE', 'ARTICLESPACE' ],
258         'subjectspacee'           => [ 1, 'SUBJECTSPACEE', 'ARTICLESPACEE' ],
259         'fullpagename'            => [ 1, 'FULLPAGENAME' ],
260         'fullpagenamee'           => [ 1, 'FULLPAGENAMEE' ],
261         'subpagename'             => [ 1, 'SUBPAGENAME' ],
262         'subpagenamee'            => [ 1, 'SUBPAGENAMEE' ],
263         'rootpagename'            => [ 1, 'ROOTPAGENAME' ],
264         'rootpagenamee'           => [ 1, 'ROOTPAGENAMEE' ],
265         'basepagename'            => [ 1, 'BASEPAGENAME' ],
266         'basepagenamee'           => [ 1, 'BASEPAGENAMEE' ],
267         'talkpagename'            => [ 1, 'TALKPAGENAME' ],
268         'talkpagenamee'           => [ 1, 'TALKPAGENAMEE' ],
269         'subjectpagename'         => [ 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ],
270         'subjectpagenamee'        => [ 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ],
271         'msg'                     => [ 0, 'MSG:' ],
272         'subst'                   => [ 0, 'SUBST:' ],
273         'safesubst'               => [ 0, 'SAFESUBST:' ],
274         'msgnw'                   => [ 0, 'MSGNW:' ],
275         'img_thumbnail'           => [ 1, 'thumb', 'thumbnail' ],
276         'img_manualthumb'         => [ 1, 'thumbnail=$1', 'thumb=$1' ],
277         'img_right'               => [ 1, 'right' ],
278         'img_left'                => [ 1, 'left' ],
279         'img_none'                => [ 1, 'none' ],
280         'img_width'               => [ 1, '$1px' ],
281         'img_center'              => [ 1, 'center', 'centre' ],
282         'img_framed'              => [ 1, 'frame', 'framed', 'enframed' ],
283         'img_frameless'           => [ 1, 'frameless' ],
284         'img_lang'                => [ 1, 'lang=$1' ],
285         'img_page'                => [ 1, 'page=$1', 'page $1' ],
286         'img_upright'             => [ 1, 'upright', 'upright=$1', 'upright $1' ],
287         'img_border'              => [ 1, 'border' ],
288         'img_baseline'            => [ 1, 'baseline' ],
289         'img_sub'                 => [ 1, 'sub' ],
290         'img_super'               => [ 1, 'super', 'sup' ],
291         'img_top'                 => [ 1, 'top' ],
292         'img_text_top'            => [ 1, 'text-top' ],
293         'img_middle'              => [ 1, 'middle' ],
294         'img_bottom'              => [ 1, 'bottom' ],
295         'img_text_bottom'         => [ 1, 'text-bottom' ],
296         'img_link'                => [ 1, 'link=$1' ],
297         'img_alt'                 => [ 1, 'alt=$1' ],
298         'img_class'               => [ 1, 'class=$1' ],
299         'int'                     => [ 0, 'INT:' ],
300         'sitename'                => [ 1, 'SITENAME' ],
301         'ns'                      => [ 0, 'NS:' ],
302         'nse'                     => [ 0, 'NSE:' ],
303         'localurl'                => [ 0, 'LOCALURL:' ],
304         'localurle'               => [ 0, 'LOCALURLE:' ],
305         'articlepath'             => [ 0, 'ARTICLEPATH' ],
306         'pageid'                  => [ 0, 'PAGEID' ],
307         'server'                  => [ 0, 'SERVER' ],
308         'servername'              => [ 0, 'SERVERNAME' ],
309         'scriptpath'              => [ 0, 'SCRIPTPATH' ],
310         'stylepath'               => [ 0, 'STYLEPATH' ],
311         'grammar'                 => [ 0, 'GRAMMAR:' ],
312         'gender'                  => [ 0, 'GENDER:' ],
313         'bidi'                    => [ 0, 'BIDI:' ],
314         'notitleconvert'          => [ 0, '__NOTITLECONVERT__', '__NOTC__' ],
315         'nocontentconvert'        => [ 0, '__NOCONTENTCONVERT__', '__NOCC__' ],
316         'currentweek'             => [ 1, 'CURRENTWEEK' ],
317         'currentdow'              => [ 1, 'CURRENTDOW' ],
318         'localweek'               => [ 1, 'LOCALWEEK' ],
319         'localdow'                => [ 1, 'LOCALDOW' ],
320         'revisionid'              => [ 1, 'REVISIONID' ],
321         'revisionday'             => [ 1, 'REVISIONDAY' ],
322         'revisionday2'            => [ 1, 'REVISIONDAY2' ],
323         'revisionmonth'           => [ 1, 'REVISIONMONTH' ],
324         'revisionmonth1'          => [ 1, 'REVISIONMONTH1' ],
325         'revisionyear'            => [ 1, 'REVISIONYEAR' ],
326         'revisiontimestamp'       => [ 1, 'REVISIONTIMESTAMP' ],
327         'revisionuser'            => [ 1, 'REVISIONUSER' ],
328         'revisionsize'            => [ 1, 'REVISIONSIZE' ],
329         'plural'                  => [ 0, 'PLURAL:' ],
330         'fullurl'                 => [ 0, 'FULLURL:' ],
331         'fullurle'                => [ 0, 'FULLURLE:' ],
332         'canonicalurl'            => [ 0, 'CANONICALURL:' ],
333         'canonicalurle'           => [ 0, 'CANONICALURLE:' ],
334         'lcfirst'                 => [ 0, 'LCFIRST:' ],
335         'ucfirst'                 => [ 0, 'UCFIRST:' ],
336         'lc'                      => [ 0, 'LC:' ],
337         'uc'                      => [ 0, 'UC:' ],
338         'raw'                     => [ 0, 'RAW:' ],
339         'displaytitle'            => [ 1, 'DISPLAYTITLE' ],
340         'rawsuffix'               => [ 1, 'R' ],
341         'nocommafysuffix'         => [ 0, 'NOSEP' ],
342         'newsectionlink'          => [ 1, '__NEWSECTIONLINK__' ],
343         'nonewsectionlink'        => [ 1, '__NONEWSECTIONLINK__' ],
344         'currentversion'          => [ 1, 'CURRENTVERSION' ],
345         'urlencode'               => [ 0, 'URLENCODE:' ],
346         'anchorencode'            => [ 0, 'ANCHORENCODE' ],
347         'currenttimestamp'        => [ 1, 'CURRENTTIMESTAMP' ],
348         'localtimestamp'          => [ 1, 'LOCALTIMESTAMP' ],
349         'directionmark'           => [ 1, 'DIRECTIONMARK', 'DIRMARK' ],
350         'language'                => [ 0, '#LANGUAGE:' ],
351         'contentlanguage'         => [ 1, 'CONTENTLANGUAGE', 'CONTENTLANG' ],
352         'pagelanguage'            => [ 1, 'PAGELANGUAGE' ],
353         'pagesinnamespace'        => [ 1, 'PAGESINNAMESPACE:', 'PAGESINNS:' ],
354         'numberofadmins'          => [ 1, 'NUMBEROFADMINS' ],
355         'formatnum'               => [ 0, 'FORMATNUM' ],
356         'padleft'                 => [ 0, 'PADLEFT' ],
357         'padright'                => [ 0, 'PADRIGHT' ],
358         'special'                 => [ 0, 'special' ],
359         'speciale'                => [ 0, 'speciale' ],
360         'defaultsort'             => [ 1, 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ],
361         'filepath'                => [ 0, 'FILEPATH:' ],
362         'tag'                     => [ 0, 'tag' ],
363         'hiddencat'               => [ 1, '__HIDDENCAT__' ],
364         'pagesincategory'         => [ 1, 'PAGESINCATEGORY', 'PAGESINCAT' ],
365         'pagesize'                => [ 1, 'PAGESIZE' ],
366         'index'                   => [ 1, '__INDEX__' ],
367         'noindex'                 => [ 1, '__NOINDEX__' ],
368         'numberingroup'           => [ 1, 'NUMBERINGROUP', 'NUMINGROUP' ],
369         'staticredirect'          => [ 1, '__STATICREDIRECT__' ],
370         'protectionlevel'         => [ 1, 'PROTECTIONLEVEL' ],
371         'protectionexpiry'        => [ 1, 'PROTECTIONEXPIRY' ],
372         'cascadingsources'        => [ 1, 'CASCADINGSOURCES' ],
373         'formatdate'              => [ 0, 'formatdate', 'dateformat' ],
374         'url_path'                => [ 0, 'PATH' ],
375         'url_wiki'                => [ 0, 'WIKI' ],
376         'url_query'               => [ 0, 'QUERY' ],
377         'defaultsort_noerror'     => [ 0, 'noerror' ],
378         'defaultsort_noreplace'   => [ 0, 'noreplace' ],
379         'displaytitle_noerror'    => [ 0, 'noerror' ],
380         'displaytitle_noreplace'  => [ 0, 'noreplace' ],
381         'pagesincategory_all'     => [ 0, 'all' ],
382         'pagesincategory_pages'   => [ 0, 'pages' ],
383         'pagesincategory_subcats' => [ 0, 'subcats' ],
384         'pagesincategory_files'   => [ 0, 'files' ],
385 ];
386
387 /**
388  * Alternate names of special pages. All names are case-insensitive. The first
389  * listed alias will be used as the default. Aliases from the fallback
390  * localisation (usually English) will be included by default.
391  *
392  * This array may be altered at runtime using the LanguageGetSpecialPageAliases
393  * hook.
394  */
395 $specialPageAliases = [
396         'Activeusers'               => [ 'ActiveUsers' ],
397         'Allmessages'               => [ 'AllMessages' ],
398         'AllMyUploads'              => [ 'AllMyUploads', 'AllMyFiles' ],
399         'Allpages'                  => [ 'AllPages' ],
400         'ApiHelp'                   => [ 'ApiHelp' ],
401         'ApiSandbox'                => [ 'ApiSandbox' ],
402         'Ancientpages'              => [ 'AncientPages' ],
403         'AutoblockList'             => [ 'AutoblockList', 'ListAutoblocks' ],
404         'Badtitle'                  => [ 'Badtitle' ],
405         'Blankpage'                 => [ 'BlankPage' ],
406         'Block'                     => [ 'Block', 'BlockIP', 'BlockUser' ],
407         'Booksources'               => [ 'BookSources' ],
408         'BotPasswords'              => [ 'BotPasswords' ],
409         'BrokenRedirects'           => [ 'BrokenRedirects' ],
410         'Categories'                => [ 'Categories' ],
411         'ChangeContentModel'        => [ 'ChangeContentModel' ],
412         'ChangeCredentials'         => [ 'ChangeCredentials' ],
413         'ChangeEmail'               => [ 'ChangeEmail' ],
414         'ChangePassword'            => [ 'ChangePassword', 'ResetPass', 'ResetPassword' ],
415         'ComparePages'              => [ 'ComparePages' ],
416         'Confirmemail'              => [ 'ConfirmEmail' ],
417         'Contributions'             => [ 'Contributions', 'Contribs' ],
418         'CreateAccount'             => [ 'CreateAccount' ],
419         'Deadendpages'              => [ 'DeadendPages' ],
420         'DeletedContributions'      => [ 'DeletedContributions' ],
421         'Diff'                      => [ 'Diff' ],
422         'DoubleRedirects'           => [ 'DoubleRedirects' ],
423         'EditTags'                  => [ 'EditTags' ],
424         'EditWatchlist'             => [ 'EditWatchlist' ],
425         'Emailuser'                 => [ 'EmailUser', 'Email' ],
426         'ExpandTemplates'           => [ 'ExpandTemplates' ],
427         'Export'                    => [ 'Export' ],
428         'Fewestrevisions'           => [ 'FewestRevisions' ],
429         'FileDuplicateSearch'       => [ 'FileDuplicateSearch' ],
430         'Filepath'                  => [ 'FilePath' ],
431         'GoToInterwiki'             => [ 'GoToInterwiki' ],
432         'Import'                    => [ 'Import' ],
433         'Invalidateemail'           => [ 'InvalidateEmail' ],
434         'JavaScriptTest'            => [ 'JavaScriptTest' ],
435         'BlockList'                 => [ 'BlockList', 'ListBlocks', 'IPBlockList' ],
436         'LinkSearch'                => [ 'LinkSearch' ],
437         'LinkAccounts'              => [ 'LinkAccounts' ],
438         'Listadmins'                => [ 'ListAdmins' ],
439         'Listbots'                  => [ 'ListBots' ],
440         'Listfiles'                 => [ 'ListFiles', 'FileList', 'ImageList' ],
441         'Listgrouprights'           => [ 'ListGroupRights', 'UserGroupRights' ],
442         'Listgrants'                => [ 'ListGrants' ],
443         'Listredirects'             => [ 'ListRedirects' ],
444         'ListDuplicatedFiles'       => [ 'ListDuplicatedFiles', 'ListFileDuplicates' ],
445         'Listusers'                 => [ 'ListUsers', 'UserList' ],
446         'Lockdb'                    => [ 'LockDB' ],
447         'Log'                       => [ 'Log', 'Logs' ],
448         'Lonelypages'               => [ 'LonelyPages', 'OrphanedPages' ],
449         'Longpages'                 => [ 'LongPages' ],
450         'MediaStatistics'           => [ 'MediaStatistics' ],
451         'MergeHistory'              => [ 'MergeHistory' ],
452         'MIMEsearch'                => [ 'MIMESearch' ],
453         'Mostcategories'            => [ 'MostCategories' ],
454         'Mostimages'                => [ 'MostLinkedFiles', 'MostFiles', 'MostImages' ],
455         'Mostinterwikis'            => [ 'MostInterwikis' ],
456         'Mostlinked'                => [ 'MostLinkedPages', 'MostLinked' ],
457         'Mostlinkedcategories'      => [ 'MostLinkedCategories', 'MostUsedCategories' ],
458         'Mostlinkedtemplates'       => [ 'MostTranscludedPages', 'MostLinkedTemplates', 'MostUsedTemplates' ],
459         'Mostrevisions'             => [ 'MostRevisions' ],
460         'Movepage'                  => [ 'MovePage' ],
461         'Mycontributions'           => [ 'MyContributions' ],
462         'MyLanguage'                => [ 'MyLanguage' ],
463         'Mypage'                    => [ 'MyPage' ],
464         'Mytalk'                    => [ 'MyTalk' ],
465         'Myuploads'                 => [ 'MyUploads', 'MyFiles' ],
466         'Newimages'                 => [ 'NewFiles', 'NewImages' ],
467         'Newpages'                  => [ 'NewPages' ],
468         'PagesWithProp'             => [ 'PagesWithProp', 'Pageswithprop', 'PagesByProp', 'Pagesbyprop' ],
469         'PageData'                  => [ 'Pagedata' ],
470         'PageLanguage'              => [ 'PageLanguage' ],
471         'PasswordReset'             => [ 'PasswordReset' ],
472         'PermanentLink'             => [ 'PermanentLink', 'PermaLink' ],
473         'Preferences'               => [ 'Preferences' ],
474         'Prefixindex'               => [ 'PrefixIndex' ],
475         'Protectedpages'            => [ 'ProtectedPages' ],
476         'Protectedtitles'           => [ 'ProtectedTitles' ],
477         'Randompage'                => [ 'Random', 'RandomPage' ],
478         'RandomInCategory'          => [ 'RandomInCategory' ],
479         'Randomredirect'            => [ 'RandomRedirect' ],
480         'Randomrootpage'            => [ 'RandomRootpage' ],
481         'Recentchanges'             => [ 'RecentChanges' ],
482         'Recentchangeslinked'       => [ 'RecentChangesLinked', 'RelatedChanges' ],
483         'Redirect'                  => [ 'Redirect' ],
484         'RemoveCredentials'         => [ 'RemoveCredentials' ],
485         'ResetTokens'               => [ 'ResetTokens' ],
486         'Revisiondelete'            => [ 'RevisionDelete' ],
487         'RunJobs'                   => [ 'RunJobs' ],
488         'Search'                    => [ 'Search' ],
489         'Shortpages'                => [ 'ShortPages' ],
490         'Specialpages'              => [ 'SpecialPages' ],
491         'Statistics'                => [ 'Statistics' ],
492         'Tags'                      => [ 'Tags' ],
493         'TrackingCategories'        => [ 'TrackingCategories' ],
494         'Unblock'                   => [ 'Unblock' ],
495         'Uncategorizedcategories'   => [ 'UncategorizedCategories' ],
496         'Uncategorizedimages'       => [ 'UncategorizedFiles', 'UncategorizedImages' ],
497         'Uncategorizedpages'        => [ 'UncategorizedPages' ],
498         'Uncategorizedtemplates'    => [ 'UncategorizedTemplates' ],
499         'Undelete'                  => [ 'Undelete' ],
500         'UnlinkAccounts'            => [ 'UnlinkAccounts' ],
501         'Unlockdb'                  => [ 'UnlockDB' ],
502         'Unusedcategories'          => [ 'UnusedCategories' ],
503         'Unusedimages'              => [ 'UnusedFiles', 'UnusedImages' ],
504         'Unusedtemplates'           => [ 'UnusedTemplates' ],
505         'Unwatchedpages'            => [ 'UnwatchedPages' ],
506         'Upload'                    => [ 'Upload' ],
507         'UploadStash'               => [ 'UploadStash' ],
508         'Userlogin'                 => [ 'UserLogin', 'Login' ],
509         'Userlogout'                => [ 'UserLogout', 'Logout' ],
510         'Userrights'                => [ 'UserRights', 'MakeSysop', 'MakeBot' ],
511         'Version'                   => [ 'Version' ],
512         'Wantedcategories'          => [ 'WantedCategories' ],
513         'Wantedfiles'               => [ 'WantedFiles' ],
514         'Wantedpages'               => [ 'WantedPages', 'BrokenLinks' ],
515         'Wantedtemplates'           => [ 'WantedTemplates' ],
516         'Watchlist'                 => [ 'Watchlist' ],
517         'Whatlinkshere'             => [ 'WhatLinksHere' ],
518         'Withoutinterwiki'          => [ 'WithoutInterwiki' ],
519 ];
520
521 /**
522  * Regular expression matching the "link trail", e.g. "ed" in [[Toast]]ed, as
523  * the first group, and the remainder of the string as the second group.
524  */
525 $linkTrail = '/^([a-z]+)(.*)$/sD';
526
527 /**
528  * Regular expression charset matching the "link prefix", e.g. "foo" in
529  * foo[[bar]]. UTF-8 characters may be used.
530  */
531 $linkPrefixCharset = 'a-zA-Z\\x{80}-\\x{10ffff}';
532
533 /**
534  * List of filenames for some ui images that can be overridden per language
535  * basis if needed.
536  */
537 $imageFiles = [
538         'button-bold'     => 'en/button_bold.png',
539         'button-italic'   => 'en/button_italic.png',
540         'button-link'     => 'en/button_link.png',
541         'button-extlink'  => 'en/button_extlink.png',
542         'button-headline' => 'en/button_headline.png',
543         'button-image'    => 'en/button_image.png',
544         'button-media'    => 'en/button_media.png',
545         'button-nowiki'   => 'en/button_nowiki.png',
546         'button-sig'      => 'en/button_sig.png',
547         'button-hr'       => 'en/button_hr.png',
548 ];
549
550 /**
551  * A list of messages to preload for each request.
552  * Here we add messages that are needed for a typical anonymous parser cache hit.
553  */
554 $preloadedMessages = [
555         'aboutpage',
556         'aboutsite',
557         'accesskey-ca-edit',
558         'accesskey-ca-history',
559         'accesskey-ca-nstab-main',
560         'accesskey-ca-talk',
561         'accesskey-ca-viewsource',
562         'accesskey-n-currentevents',
563         'accesskey-n-help',
564         'accesskey-n-mainpage-description',
565         'accesskey-n-portal',
566         'accesskey-n-randompage',
567         'accesskey-n-recentchanges',
568         'accesskey-p-logo',
569         'accesskey-pt-login',
570         'accesskey-pt-createaccount',
571         'accesskey-search',
572         'accesskey-search-fulltext',
573         'accesskey-search-go',
574         'accesskey-t-info',
575         'accesskey-t-permalink',
576         'accesskey-t-print',
577         'accesskey-t-recentchangeslinked',
578         'accesskey-t-specialpages',
579         'accesskey-t-whatlinkshere',
580         'actions',
581         'anonnotice',
582         'brackets',
583         'comma-separator',
584         'currentevents',
585         'currentevents-url',
586         'disclaimerpage',
587         'disclaimers',
588         'edit',
589         'editsection',
590         'editsectionhint',
591         'help',
592         'helppage',
593         'interlanguage-link-title',
594         'jumpto',
595         'jumptonavigation',
596         'jumptosearch',
597         'lastmodifiedat',
598         'mainpage',
599         'mainpage-description',
600         'mainpage-nstab',
601         'namespaces',
602         'navigation',
603         'nav-login-createaccount',
604         'nstab-main',
605         'opensearch-desc',
606         'pagecategories',
607         'pagecategorieslink',
608         'pagetitle',
609         'pagetitle-view-mainpage',
610         'permalink',
611         'personaltools',
612         'portal',
613         'portal-url',
614         'printableversion',
615         'privacy',
616         'privacypage',
617         'randompage',
618         'randompage-url',
619         'recentchanges',
620         'recentchangeslinked-toolbox',
621         'recentchanges-url',
622         'retrievedfrom',
623         'search',
624         'searcharticle',
625         'searchbutton',
626         'searchsuggest-search',
627         'sidebar',
628         'navigation-heading',
629         'site-atom-feed',
630         'sitenotice',
631         'specialpages',
632         'tagline',
633         'talk',
634         'toolbox',
635         'tooltip-ca-edit',
636         'tooltip-ca-history',
637         'tooltip-ca-nstab-main',
638         'tooltip-ca-talk',
639         'tooltip-ca-viewsource',
640         'tooltip-n-currentevents',
641         'tooltip-n-help',
642         'tooltip-n-mainpage-description',
643         'tooltip-n-portal',
644         'tooltip-n-randompage',
645         'tooltip-n-recentchanges',
646         'tooltip-p-logo',
647         'tooltip-pt-login',
648         'tooltip-pt-createaccount',
649         'tooltip-search',
650         'tooltip-search-fulltext',
651         'tooltip-search-go',
652         'tooltip-t-info',
653         'tooltip-t-permalink',
654         'tooltip-t-print',
655         'tooltip-t-recentchangeslinked',
656         'tooltip-t-specialpages',
657         'tooltip-t-whatlinkshere',
658         'variants',
659         'vector-view-edit',
660         'vector-view-history',
661         'vector-view-view',
662         'viewcount',
663         'views',
664         'whatlinkshere',
665         'word-separator',
666 ];