Implements a special page which shows all translations for a message. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Entry point : initialise variables and call subfunctions. | |
namespaceMessageForm (Title $title=null) | |
Message input fieldset. | |
getSortedNamespaces () | |
Returns sorted array of namespaces. | |
showTranslations (Title $title) | |
Builds a table with all translations of $title. | |
Private Member Functions | |
getCode ($name) | |
Get code for a page name. | |
includeAssets () | |
Add JavaScript assets. |
Implements a special page which shows all translations for a message.
Bits taken from SpecialPrefixindex.php and TranslateTasks.php
Definition at line 18 of file SpecialTranslations.php.
SpecialTranslations::__construct | ( | ) |
Definition at line 19 of file SpecialTranslations.php.
SpecialTranslations::execute | ( | $ | par | ) |
Entry point : initialise variables and call subfunctions.
string | $par Message key. Becomes "MediaWiki:Allmessages" when called like Special:Translations/MediaWiki:Allmessages (default null) |
GET values.
Definition at line 28 of file SpecialTranslations.php.
SpecialTranslations::getCode | ( | $ | name | ) | [private] |
Get code for a page name.
string | $name Page title (f.e. "MediaWiki:Main_page/nl"). |
Definition at line 274 of file SpecialTranslations.php.
Referenced by showTranslations().
SpecialTranslations::getSortedNamespaces | ( | ) |
Returns sorted array of namespaces.
Definition at line 129 of file SpecialTranslations.php.
Referenced by namespaceMessageForm().
SpecialTranslations::includeAssets | ( | ) | [private] |
Add JavaScript assets.
Definition at line 283 of file SpecialTranslations.php.
Referenced by execute().
SpecialTranslations::namespaceMessageForm | ( | Title $ | title = null |
) |
Message input fieldset.
Title | $title (default: null) |
Definition at line 79 of file SpecialTranslations.php.
Referenced by execute().
SpecialTranslations::showTranslations | ( | Title $ | title | ) |
Builds a table with all translations of $title.
Title | $title (default: null) |
Definition at line 146 of file SpecialTranslations.php.
Referenced by execute().