Public Member Functions | |
__construct ($langobj, $maincode, $variants=array(), $variantfallbacks=array(), $flags=array(), $manualLevel=array()) | |
Constructor. | |
loadDefaultTables () | |
Load default conversion tables. | |
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. |
Definition at line 9 of file LanguageZh.php.
ZhConverter::__construct | ( | $ | langobj, | |
$ | maincode, | |||
$ | variants = array() , |
|||
$ | variantfallbacks = array() , |
|||
$ | flags = array() , |
|||
$ | manualLevel = array() | |||
) |
Constructor.
$langobj | The Language Object | |
$maincode | String: the main language code of this language | |
$variants | Array: the supported variants of this language | |
$variantfallbacks | Array: the fallback language of each variant | |
$flags | Array: defining the custom strings that maps to the flags | |
$manualLevel | Array: limit for supported variants |
Reimplemented from LanguageConverter.
Definition at line 11 of file LanguageZh.php.
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 69 of file LanguageZh.php.
References LanguageConverter::autoConvert().
ZhConverter::loadDefaultTables | ( | ) |
Load default conversion tables.
This method must be implemented in derived class.
Reimplemented from LanguageConverter.
Definition at line 37 of file LanguageZh.php.
References $zh2CN, $zh2Hans, $zh2Hant, $zh2HK, $zh2SG, and $zh2TW.
ZhConverter::markNoConversion | ( | $ | text, | |
$ | noParse = false | |||
) |
Enclose a string with the "no conversion" tag.
This is used by various functions in the Parser.
string | $text text to be tagged for no conversion |
Reimplemented from LanguageConverter.
Definition at line 65 of file LanguageZh.php.
ZhConverter::postLoadTables | ( | ) |
Hook for post processig after conversion tables are loaded.
Reimplemented from LanguageConverter.
Definition at line 52 of file LanguageZh.php.