SpecialMyLanguage Class Reference
[Special pages of Translate extension]

Unlisted special page just to redirect the user to the translated version of a page, if it exists. More...

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Only takes arguments from $par.

Static Public Member Functions

static linkfix ($dummy, $target, &$html, &$customAttribs, &$query, &$options, &$ret)
 Make Special:MyLanguage links red if the target page doesn't exists.

Protected Member Functions

 findTitle ($par)
 Assuming the user's interface language is fi.

Detailed Description

Unlisted special page just to redirect the user to the translated version of a page, if it exists.

Usage: [[Special:MyLanguage/Page name|link text]]

Definition at line 20 of file SpecialMyLanguage.php.


Constructor & Destructor Documentation

SpecialMyLanguage::__construct (  ) 

Definition at line 21 of file SpecialMyLanguage.php.


Member Function Documentation

SpecialMyLanguage::execute ( par  ) 

Only takes arguments from $par.

Definition at line 26 of file SpecialMyLanguage.php.

Here is the call graph for this function:

SpecialMyLanguage::findTitle ( par  )  [protected]

Assuming the user's interface language is fi.

Given input Page, it returns Page/fi if it exists, otherwise Page. Given input Page/de, it returns Page/fi if it exists, otherwise Page/de if it exists, otherwise Page.

Parameters:
$par 
Returns:
Title|null

Definition at line 44 of file SpecialMyLanguage.php.

Referenced by execute().

static SpecialMyLanguage::linkfix ( dummy,
target,
&$  html,
&$  customAttribs,
&$  query,
&$  options,
&$  ret 
) [static]

Make Special:MyLanguage links red if the target page doesn't exists.

A bit hacky because the core code is not so flexible.

Parameters:
$dummy 
$target Title
$html 
$customAttribs 
$query 
$options 
$ret 
Returns:
bool

Definition at line 87 of file SpecialMyLanguage.php.


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