LanguageGan Class Reference
[Language]

class that handles both Traditional and Simplified Chinese right now it only distinguish gan_hans, gan_hant. More...

Inherits LanguageZh.

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= 'gan-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 gan_hans, gan_hant.

Definition at line 59 of file LanguageGan.php.


Constructor & Destructor Documentation

LanguageGan::__construct (  ) 

Reimplemented from LanguageZh.

Definition at line 61 of file LanguageGan.php.

References $wgHooks.


Member Function Documentation

LanguageGan::convertForSearchResult ( termsArray  ) 

Reimplemented from LanguageZh.

Definition at line 102 of file LanguageGan.php.

References Language::convertDoubleWidth().

LanguageGan::normalizeForSearch ( string,
autoVariant = 'gan-hans' 
)

auto convert to zh-hans and normalize special characters.

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

Reimplemented from LanguageZh.

Definition at line 97 of file LanguageGan.php.

LanguageGan::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 LanguageZh.

Definition at line 84 of file LanguageGan.php.

LanguageGan::unsegmentForDiff ( text  ) 

and unsegment to show the result

Parameters:
$text String
Returns:
String

Reimplemented from LanguageZh.

Definition at line 90 of file LanguageGan.php.


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

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