MediaWiki  1.34.0
MessagesEn.php File Reference

Go to the source code of this file.

Variables

 $bookstoreList
 Default list of book sources. More...
 
 $capitalizeAllNouns = false
 Should all nouns (not just proper ones) be capitalized? Enabling this property will add the capitalize-all-nouns class to the <body> tag. More...
 
 $dateFormats
 These are formats for dates generated by MediaWiki (as opposed to the wikitext DateFormatter). More...
 
 $datePreferenceMigrationMap
 Associative array mapping old numeric date formats, which may still be stored in user preferences, to the new string formats. More...
 
 $datePreferences
 A list of date format preference keys, which can be selected in user preferences. More...
 
 $defaultDateFormat = 'dmy or mdy'
 The date format to use for generated dates in the user interface. More...
 
 $digitTransformTable = null
 Optional array mapping ASCII digits 0-9 to local digits. More...
 
 $fallback = false
 This is the default English localisation file containing language specific information excluding interface strings, which are stored in JSON files. More...
 
 $fallback8bitEncoding = 'windows-1252'
 URLs do not specify their encoding. More...
 
 $linkPrefixCharset = 'a-zA-Z\\x{80}-\\x{10ffff}'
 Regular expression charset matching the "link prefix", e.g. More...
 
 $linkPrefixExtension = false
 To allow "foo[[bar]]" to extend the link over the whole word "foobar". More...
 
 $linkTrail = '/^([a-z]+)(.*)$/sD'
 Regular expression matching the "link trail", e.g. More...
 
 $magicWords
 Magic words Customizable syntax for wikitext and elsewhere. More...
 
 $namespaceAliases = []
 Array of namespace aliases, mapping from name to NS_xxx index. More...
 
 $namespaceGenderAliases = []
 Array of gender specific. More...
 
 $namespaceNames
 Namespace names. More...
 
 $preloadedMessages
 A list of messages to preload for each request. More...
 
 $rtl = false
 Is the language written right-to-left? More...
 
 $separatorTransformTable = null
 Transform table for decimal point '. More...
 
 $specialPageAliases
 Alternate names of special pages. More...
 

Variable Documentation

◆ $bookstoreList

$bookstoreList
Initial value:
= [
'AddALL' => 'http:
'Barnes & Noble' => 'http:
'Amazon.com' => 'https:
]

Default list of book sources.

Definition at line 180 of file MessagesEn.php.

◆ $capitalizeAllNouns

$capitalizeAllNouns = false

Should all nouns (not just proper ones) be capitalized? Enabling this property will add the capitalize-all-nouns class to the <body> tag.

Definition at line 28 of file MessagesEn.php.

◆ $dateFormats

$dateFormats
Initial value:
= [
'mdy time' => 'H:i',
'mdy date' => 'F j, Y',
'mdy monthonly' => 'F Y',
'mdy both' => 'H:i, F j, Y',
'mdy pretty' => 'F j',
'dmy time' => 'H:i',
'dmy date' => 'j F Y',
'dmy monthonly' => 'F Y',
'dmy both' => 'H:i, j F Y',
'dmy pretty' => 'j F',
'ymd time' => 'H:i',
'ymd date' => 'Y F j',
'ymd monthonly' => 'Y F',
'ymd both' => 'H:i, Y F j',
'ymd pretty' => 'F j',
'ISO 8601 time' => 'xnH:xni:xns',
'ISO 8601 date' => 'xnY-xnm-xnd',
'ISO 8601 monthonly' => 'xnY-xnm',
'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
'ISO 8601 pretty' => 'xnm-xnd'
]

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.

Definition at line 151 of file MessagesEn.php.

◆ $datePreferenceMigrationMap

$datePreferenceMigrationMap
Initial value:
= [
'default',
'mdy',
'dmy',
'ymd'
]

Associative array mapping old numeric date formats, which may still be stored in user preferences, to the new string formats.

Definition at line 136 of file MessagesEn.php.

◆ $datePreferences

$datePreferences
Initial value:
= [
'default',
'mdy',
'dmy',
'ymd',
'ISO 8601',
]

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 (parser/DateFormatter.php).

The special key "default" is an alias for either dmy or mdy depending on $wgAmericanDates

Definition at line 116 of file MessagesEn.php.

◆ $defaultDateFormat

$defaultDateFormat = 'dmy or mdy'

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.

Definition at line 130 of file MessagesEn.php.

◆ $digitTransformTable

$digitTransformTable = null

Optional array mapping ASCII digits 0-9 to local digits.

Definition at line 33 of file MessagesEn.php.

◆ $fallback

$fallback = false

This is the default English localisation file containing language specific information excluding interface strings, which are stored in JSON files.

Please see https://www.mediawiki.org/wiki/Localisation for more information. To improve a translation please visit https://translatewiki.net Fallback language, used for all unspecified messages and behavior. This is English by default, for all files other than this one.

Do NOT set this to false in any other message file! Leave the line out to accept the default fallback to "en".

Definition at line 17 of file MessagesEn.php.

◆ $fallback8bitEncoding

$fallback8bitEncoding = 'windows-1252'

URLs do not specify their encoding.

UTF-8 is used by default, but if the URL is not a valid UTF-8 sequence, we have to try to guess what the real encoding is. The encoding used in this case is defined below, and must be supported by iconv().

Definition at line 46 of file MessagesEn.php.

◆ $linkPrefixCharset

$linkPrefixCharset = 'a-zA-Z\\x{80}-\\x{10ffff}'

Regular expression charset matching the "link prefix", e.g.

"foo" in foo[[bar]]. UTF-8 characters may be used.

Definition at line 523 of file MessagesEn.php.

◆ $linkPrefixExtension

$linkPrefixExtension = false

To allow "foo[[bar]]" to extend the link over the whole word "foobar".

Definition at line 51 of file MessagesEn.php.

◆ $linkTrail

$linkTrail = '/^([a-z]+)(.*)$/sD'

Regular expression matching the "link trail", e.g.

"ed" in [[Toast]]ed, as the first group, and the remainder of the string as the second group.

Definition at line 517 of file MessagesEn.php.

◆ $magicWords

$magicWords

Magic words Customizable syntax for wikitext and elsewhere.

IDs must be valid identifiers, they cannot contain hyphens. CASE is 0 to match all case variants, 1 for case-sensitive

Note to localisers:

  • Include the English magic words as synonyms. This allows people from other wikis that do not speak the language to contribute more easily.
  • The first alias listed MUST be the preferred alias in that language. Tools (like Visual Editor) are expected to use the first listed alias when editing or creating new content.
  • Order the other aliases so that common aliases occur before more rarely used aliases. The aliases SHOULD be sorted by the following convention:
    1. Local first, English last, then
    2. Most common first, least common last.

Definition at line 204 of file MessagesEn.php.

◆ $namespaceAliases

$namespaceAliases = []

Array of namespace aliases, mapping from name to NS_xxx index.

Definition at line 93 of file MessagesEn.php.

◆ $namespaceGenderAliases

$namespaceGenderAliases = []

Array of gender specific.

namespace aliases. Mapping NS_xxx to array of GENDERKEY to alias. Example:

NS_USER => [ 'male' => 'Male_user', 'female' => 'Female_user' ],
];

Definition at line 105 of file MessagesEn.php.

◆ $namespaceNames

$namespaceNames
Initial value:
= [
NS_MEDIA => 'Media',
NS_SPECIAL => 'Special',
NS_MAIN => '',
NS_TALK => 'Talk',
NS_USER => 'User',
NS_USER_TALK => 'User_talk',
# NS_PROJECT set by $wgMetaNamespace
NS_PROJECT_TALK => '$1_talk',
NS_FILE => 'File',
NS_FILE_TALK => 'File_talk',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
NS_TEMPLATE => 'Template',
NS_TEMPLATE_TALK => 'Template_talk',
NS_HELP => 'Help',
NS_HELP_TALK => 'Help_talk',
NS_CATEGORY => 'Category',
NS_CATEGORY_TALK => 'Category_talk',
]

Namespace names.

NS_PROJECT is always set to $wgMetaNamespace after the settings are loaded, it will be ignored even if you specify it here.

NS_PROJECT_TALK will be set to $wgMetaNamespaceTalk if that variable is set, otherwise the string specified here will be used. The string may contain "$1", which will be replaced by the name of NS_PROJECT. It may also contain a grammatical transformation, e.g.

NS_PROJECT_TALK => 'Keskustelu_{{grammar:elative|$1}}'

Only one grammatical transform may be specified in the string. For performance reasons, this transformation is done locally by the language module rather than by the full wikitext parser. As a result, no other parser features are available.

Definition at line 69 of file MessagesEn.php.

◆ $preloadedMessages

$preloadedMessages

A list of messages to preload for each request.

Here we add messages that are needed for a typical anonymous parser cache hit.

Definition at line 529 of file MessagesEn.php.

◆ $rtl

$rtl = false

Is the language written right-to-left?

Definition at line 22 of file MessagesEn.php.

◆ $separatorTransformTable

$separatorTransformTable = null

Transform table for decimal point '.

' and thousands separator ','

Definition at line 38 of file MessagesEn.php.

◆ $specialPageAliases

$specialPageAliases

Alternate names of special pages.

All names are case-insensitive. The first listed alias will be used as the default. Aliases from the fallback localisation (usually English) will be included by default.

Definition at line 384 of file MessagesEn.php.

NS_HELP
const NS_HELP
Definition: Defines.php:72
NS_TEMPLATE_TALK
const NS_TEMPLATE_TALK
Definition: Defines.php:71
NS_FILE
const NS_FILE
Definition: Defines.php:66
NS_TEMPLATE
const NS_TEMPLATE
Definition: Defines.php:70
NS_MAIN
const NS_MAIN
Definition: Defines.php:60
NS_SPECIAL
const NS_SPECIAL
Definition: Defines.php:49
NS_MEDIAWIKI_TALK
const NS_MEDIAWIKI_TALK
Definition: Defines.php:69
NS_CATEGORY
const NS_CATEGORY
Definition: Defines.php:74
$namespaceGenderAliases
$namespaceGenderAliases
Definition: MessagesAb.php:55
NS_USER_TALK
const NS_USER_TALK
Definition: Defines.php:63
NS_MEDIA
const NS_MEDIA
Definition: Defines.php:48
NS_PROJECT_TALK
const NS_PROJECT_TALK
Definition: Defines.php:65
NS_HELP_TALK
const NS_HELP_TALK
Definition: Defines.php:73
NS_USER
const NS_USER
Definition: Defines.php:62
NS_TALK
const NS_TALK
Definition: Defines.php:61
NS_MEDIAWIKI
const NS_MEDIAWIKI
Definition: Defines.php:68
NS_FILE_TALK
const NS_FILE_TALK
Definition: Defines.php:67
NS_CATEGORY_TALK
const NS_CATEGORY_TALK
Definition: Defines.php:75