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
 stripForSearch ($string)
 Some languages have special punctuation to strip out or characters which need to be converted for MySQL's indexing to grok it correctly.
 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 129 of file LanguageZh.php.


Constructor & Destructor Documentation

LanguageZh::__construct (  ) 

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 131 of file LanguageZh.php.

References $wgHooks.


Member Function Documentation

LanguageZh::convertForSearchResult ( termsArray  ) 

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 197 of file LanguageZh.php.

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

References $text.

LanguageZh::stripForSearch ( string  ) 

Some languages have special punctuation to strip out or characters which need to be converted for MySQL's indexing to grok it correctly.

Make such changes here.

Parameters:
$string String
Returns:
String

Reimplemented from LanguageZh_hans.

Reimplemented in LanguageGan.

Definition at line 175 of file LanguageZh.php.

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

LanguageZh::unsegmentForDiff ( text  ) 

and unsegment to show the result

Parameters:
$text String
Returns:
String

Reimplemented from Language.

Reimplemented in LanguageGan.

Definition at line 168 of file LanguageZh.php.

References $text.


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

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