LanguageZh Class Reference
[Language]

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

Inherits LanguageZh_hans.

Inherited by LanguageGan.

List of all members.

Public Member Functions

 __construct ()
 segmentForDiff ($text)
 languages like Chinese need to be segmented in order for the diff to be of any use
 unsegmentForDiff ($text)
 and unsegment to show the result
 normalizeForSearch ($string, $autoVariant= 'zh-hans')
 auto convert to zh-hans and normalize special characters.
 convertForSearchResult ($termsArray)


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 80 of file LanguageZh.php.


Constructor & Destructor Documentation

LanguageZh::__construct (  ) 

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 82 of file LanguageZh.php.

References $wgHooks.


Member Function Documentation

LanguageZh::convertForSearchResult ( termsArray  ) 

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 148 of file LanguageZh.php.

References Language::convertDoubleWidth().

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

auto convert to zh-hans and normalize special characters.

Parameters:
$string String
$autoVariant String, default to 'zh-hans'
Returns:
String

Reimplemented in LanguageGan.

Definition at line 133 of file LanguageZh.php.

References $s, wfProfileIn(), and wfProfileOut().

LanguageZh::segmentForDiff ( text  ) 

languages like Chinese need to be segmented in order for the diff to be of any use

Parameters:
$text String
Returns:
String

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 114 of file LanguageZh.php.

LanguageZh::unsegmentForDiff ( text  ) 

and unsegment to show the result

Parameters:
$text String
Returns:
String

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 120 of file LanguageZh.php.


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

Generated on Sat Apr 30 22:57:41 2011 for MediaWiki by  doxygen 1.5.9