ZhConverter Class Reference
[Language]

Inherits LanguageConverter.

List of all members.

Public Member Functions

 __construct ($langobj, $maincode, $variants=array(), $variantfallbacks=array(), $markup=array(), $flags=array(), $manualLevel=array())
 Constructor.
 loadNamespaceTables ()
 loadDefaultTables ()
 Load default conversion tables This method must be implemented in derived class.
 postLoadTables ()
 Hook for post processig after conversion tables are loaded.
 markNoConversion ($text, $noParse=false)
 Enclose a string with the "no conversion" tag.
 convertCategoryKey ($key)
 convert the sorting key for category links.


Detailed Description

Definition at line 9 of file LanguageZh.php.


Constructor & Destructor Documentation

ZhConverter::__construct ( langobj,
maincode,
variants = array(),
variantfallbacks = array(),
markup = array(),
flags = array(),
manualLevel = array() 
)

Constructor.

Parameters:
string $maincode the main language code of this language
array $variants the supported variants of this language
array $variantfallback the fallback language of each variant
array $markup array defining the markup used for manual conversion
array $flags array defining the custom strings that maps to the flags
array $manualLevel limit for supported variants
Access:
public

Reimplemented from LanguageConverter.

Definition at line 11 of file LanguageZh.php.

References $flags, and loadNamespaceTables().


Member Function Documentation

ZhConverter::convertCategoryKey ( key  ) 

convert the sorting key for category links.

this should make different keys that are variants of each other map to the same key

Reimplemented from LanguageConverter.

Definition at line 118 of file LanguageZh.php.

References $key, and LanguageConverter::autoConvert().

ZhConverter::loadDefaultTables (  ) 

Load default conversion tables This method must be implemented in derived class.

Access:
private

Reimplemented from LanguageConverter.

Definition at line 86 of file LanguageZh.php.

References $zh2CN, $zh2Hans, $zh2Hant, $zh2HK, $zh2SG, and $zh2TW.

ZhConverter::loadNamespaceTables (  ) 

Definition at line 40 of file LanguageZh.php.

References $wgMetaNamespace.

Referenced by __construct().

ZhConverter::markNoConversion ( text,
noParse = false 
)

Enclose a string with the "no conversion" tag.

This is used by various functions in the Parser

Parameters:
string $text text to be tagged for no conversion
Returns:
string the tagged text
Access:
public

Reimplemented from LanguageConverter.

Definition at line 114 of file LanguageZh.php.

References $text.

ZhConverter::postLoadTables (  ) 

Hook for post processig after conversion tables are loaded.

Reimplemented from LanguageConverter.

Definition at line 101 of file LanguageZh.php.


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

Generated on Sat Sep 5 02:08:51 2009 for MediaWiki by  doxygen 1.5.9