Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage Class Reference

Implements a special page which shows all translations for a message. More...

Inheritance diagram for MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage:

Public Member Functions

 __construct (Language $contentLanguage, LanguageNameUtils $languageNameUtils)
 
 getDescription ()
 
 execute ( $par)
 Entry point : initialise variables and call subfunctions.
 
 getSortedNamespaces ()
 Returns sorted array of namespaces.
 

Protected Member Functions

 getGroupName ()
 
 namespaceMessageForm (Title $title=null)
 Message input fieldset.
 
 showTranslations (Title $title)
 Builds a table with all translations of $title.
 

Detailed Description

Implements a special page which shows all translations for a message.

Bits taken from SpecialPrefixindex.php and TranslateTasks.php

Author
Siebrand Mazeland
Niklas Laxstörm @license GPL-2.0-or-later

Definition at line 27 of file TranslationsSpecialPage.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage::__construct ( Language $contentLanguage,
LanguageNameUtils $languageNameUtils )

Definition at line 33 of file TranslationsSpecialPage.php.

Member Function Documentation

◆ execute()

MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage::execute ( $par)

Entry point : initialise variables and call subfunctions.

Parameters
string | null$parMessage key. Becomes "MediaWiki:Allmessages" when called like Special:Translations/MediaWiki:Allmessages (default null)

Definition at line 53 of file TranslationsSpecialPage.php.

◆ getDescription()

MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage::getDescription ( )

Definition at line 44 of file TranslationsSpecialPage.php.

◆ getGroupName()

MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage::getGroupName ( )
protected

Definition at line 40 of file TranslationsSpecialPage.php.

◆ getSortedNamespaces()

MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage::getSortedNamespaces ( )

Returns sorted array of namespaces.

Returns
array ( string => int )

Definition at line 147 of file TranslationsSpecialPage.php.

◆ namespaceMessageForm()

MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage::namespaceMessageForm ( Title $title = null)
protected

Message input fieldset.

Parameters
Title | null$title(default: null)

Definition at line 105 of file TranslationsSpecialPage.php.

◆ showTranslations()

MediaWiki\Extension\Translate\TranslatorInterface\TranslationsSpecialPage::showTranslations ( Title $title)
protected

Builds a table with all translations of $title.

Parameters
Title$title(default: null)

Definition at line 164 of file TranslationsSpecialPage.php.


The documentation for this class was generated from the following file: