MediaWiki  REL1_19
LanguageZh Class Reference

class that handles both Traditional and Simplified Chinese right now it only distinguish zh_hans, zh_hant, zh_cn, zh_tw, zh_sg and zh_hk. More...

Inheritance diagram for LanguageZh:
Collaboration diagram for LanguageZh:

List of all members.

Public Member Functions

 __construct ()
 convertForSearchResult ($termsArray)
 normalizeForSearch ($string, $autoVariant= 'zh-hans')
 auto convert to zh-hans and normalize special characters.
 segmentForDiff ($text)
 this should give much better diff info
 unsegmentForDiff ($text)

Detailed Description

class that handles both Traditional and Simplified Chinese right now it only distinguish zh_hans, zh_hant, zh_cn, zh_tw, zh_sg and zh_hk.

Definition at line 98 of file LanguageZh.php.


Constructor & Destructor Documentation

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 100 of file LanguageZh.php.

References $wgHooks.


Member Function Documentation

Parameters:
$termsArrayarray
Returns:
array

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 179 of file LanguageZh.php.

References Language\convertDoubleWidth().

Here is the call graph for this function:

LanguageZh::normalizeForSearch ( string,
autoVariant = 'zh-hans' 
)

auto convert to zh-hans and normalize special characters.

Parameters:
$stringString
$autoVariantString, default to 'zh-hans'
Returns:
String

Reimplemented in LanguageGan.

Definition at line 160 of file LanguageZh.php.

References wfProfileIn(), and wfProfileOut().

Here is the call graph for this function:

this should give much better diff info

Parameters:
$textstring
Returns:
string

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 137 of file LanguageZh.php.

Parameters:
$textstring
Returns:
string

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 147 of file LanguageZh.php.


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