Go to the documentation of this file.
24 require_once __DIR__ .
'/../LanguageConverter.php';
25 require_once __DIR__ .
'/LanguageZh_hans.php';
42 $variantfallbacks =
array(),
44 $manualLevel =
array() ) {
45 $this->mDescCodeSep =
':';
46 $this->mDescVarSep =
';';
47 parent::__construct( $langobj, $maincode,
63 $this->mVariantNames = array_merge( $this->mVariantNames, $names );
67 require __DIR__ .
"/../../includes/ZhConversion.php";
68 $this->mTables =
array(
82 $this->mTables[
'zh-cn']->merge( $this->mTables[
'zh-hans'] );
83 $this->mTables[
'zh-hk']->merge( $this->mTables[
'zh-hant'] );
84 $this->mTables[
'zh-mo']->merge( $this->mTables[
'zh-hant'] );
85 $this->mTables[
'zh-my']->merge( $this->mTables[
'zh-hans'] );
86 $this->mTables[
'zh-sg']->merge( $this->mTables[
'zh-hans'] );
87 $this->mTables[
'zh-tw']->merge( $this->mTables[
'zh-hant'] );
95 return $this->autoConvert( $key,
'zh' );
109 parent::__construct();
111 $variants =
array(
'zh',
'zh-hans',
'zh-hant',
'zh-cn',
'zh-hk',
'zh-mo',
'zh-my',
'zh-sg',
'zh-tw' );
113 $variantfallbacks =
array(
114 'zh' =>
array(
'zh-hans',
'zh-hant',
'zh-cn',
'zh-tw',
'zh-hk',
'zh-sg',
'zh-mo',
'zh-my' ),
115 'zh-hans' =>
array(
'zh-cn',
'zh-sg',
'zh-my' ),
116 'zh-hant' =>
array(
'zh-tw',
'zh-hk',
'zh-mo' ),
117 'zh-cn' =>
array(
'zh-hans',
'zh-sg',
'zh-my' ),
118 'zh-sg' =>
array(
'zh-hans',
'zh-cn',
'zh-my' ),
119 'zh-my' =>
array(
'zh-hans',
'zh-sg',
'zh-cn' ),
120 'zh-tw' =>
array(
'zh-hant',
'zh-hk',
'zh-mo' ),
121 'zh-hk' =>
array(
'zh-hant',
'zh-mo',
'zh-tw' ),
122 'zh-mo' =>
array(
'zh-hant',
'zh-hk',
'zh-tw' ),
126 'zh-hans' =>
'unidirectional',
127 'zh-hant' =>
'unidirectional',
131 $variants, $variantfallbacks,
145 return preg_replace(
'/[\xc0-\xff][\x80-\xbf]*/',
' $0', $text );
153 return preg_replace(
'/ ([\xc0-\xff][\x80-\xbf]*)/',
'$1', $text );
170 $s = $this->mConverter->autoConvert( $string, $autoVariant );
172 $s = parent::normalizeForSearch(
$s );
183 $terms = implode(
'|', $termsArray );
185 $terms = implode(
'|', $this->mConverter->autoConvertToAllVariants( $terms ) );
186 $ret = array_unique( explode(
'|', $terms ) );
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
class that handles both Traditional and Simplified Chinese right now it only distinguish zh_hans,...
wfProfileIn( $functionname)
Begin profiling of a function.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
LanguageConverter $mConverter
$wgHooks['ArticleShow'][]
it s the revision text itself In either if gzip is the revision text is gzipped $flags
convertForSearchResult( $termsArray)
segmentForDiff( $text)
this should give much better diff info
wfProfileOut( $functionname='missing')
Stop profiling of a function.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
static convertDoubleWidth( $string)
convert double-width roman characters to single-width.
convertCategoryKey( $key)
Replacement array for FSS with fallback to strtr() Supports lazy initialisation of FSS resource.
__construct( $langobj, $maincode, $variants=array(), $variantfallbacks=array(), $flags=array(), $manualLevel=array())
normalizeForSearch( $string, $autoVariant='zh-hans')
auto convert to zh-hans and normalize special characters.