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


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) | |
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.
Reimplemented from Language.
Reimplemented in LanguageGan.
Definition at line 100 of file LanguageZh.php.
References $wgHooks.
| LanguageZh::convertForSearchResult | ( | $ | termsArray | ) |
| $termsArray | array |
Reimplemented from Language.
Reimplemented in LanguageGan.
Definition at line 179 of file LanguageZh.php.
References Language\convertDoubleWidth().

| LanguageZh::normalizeForSearch | ( | $ | string, |
| $ | autoVariant = 'zh-hans' |
||
| ) |
auto convert to zh-hans and normalize special characters.
| $string | String |
| $autoVariant | String, default to 'zh-hans' |
Reimplemented in LanguageGan.
Definition at line 160 of file LanguageZh.php.
References wfProfileIn(), and wfProfileOut().

| LanguageZh::segmentForDiff | ( | $ | text | ) |
this should give much better diff info
| $text | string |
Reimplemented from Language.
Reimplemented in LanguageGan.
Definition at line 137 of file LanguageZh.php.
| LanguageZh::unsegmentForDiff | ( | $ | text | ) |
| $text | string |
Reimplemented from Language.
Reimplemented in LanguageGan.
Definition at line 147 of file LanguageZh.php.