SpecialTranslations Class Reference
[Special pages of Translate extension]

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

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

SpecialTranslations::__construct (  ) 

Definition at line 19 of file SpecialTranslations.php.


Member Function Documentation

SpecialTranslations::execute ( par  ) 

Entry point : initialise variables and call subfunctions.

Parameters:
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.

Here is the call graph for this function:

SpecialTranslations::getCode ( name  )  [private]

Get code for a page name.

Parameters:
string $name Page title (f.e. "MediaWiki:Main_page/nl").
Returns:
string Language code

Definition at line 274 of file SpecialTranslations.php.

Referenced by showTranslations().

SpecialTranslations::getSortedNamespaces (  ) 

Returns sorted array of namespaces.

Returns:
array ( string => int )

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().

Here is the call graph for this function:

SpecialTranslations::namespaceMessageForm ( Title $  title = null  ) 

Message input fieldset.

Parameters:
Title $title (default: null)
Returns:
string HTML for fieldset.

Definition at line 79 of file SpecialTranslations.php.

Referenced by execute().

Here is the call graph for this function:

SpecialTranslations::showTranslations ( Title $  title  ) 

Builds a table with all translations of $title.

Parameters:
Title $title (default: null)

Definition at line 146 of file SpecialTranslations.php.

Referenced by execute().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:54 2013 for MediaWiki Translate Extension by  doxygen 1.6.3