diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-01-11 19:06:07 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-01-11 19:06:07 +0000 |
commit | a58285fd06c8113c45377c655dd43cef6337e815 (patch) | |
tree | dfe31d3d12652352fe44890b4811eda0728faefb /languages/classes/LanguageZh.php | |
parent | 20194986f6638233732ba1fc3e838f117d3cc9ea (diff) |
Aktualisierung auf MediaWiki 1.9.0
Diffstat (limited to 'languages/classes/LanguageZh.php')
-rw-r--r-- | languages/classes/LanguageZh.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/languages/classes/LanguageZh.php b/languages/classes/LanguageZh.php index c34315ac..d4fbaf30 100644 --- a/languages/classes/LanguageZh.php +++ b/languages/classes/LanguageZh.php @@ -9,23 +9,25 @@ require_once( dirname(__FILE__).'/LanguageZh_cn.php' ); class ZhConverter extends LanguageConverter { function loadDefaultTables() { require( "includes/ZhConversion.php" ); - $this->mTables = array(); - $this->mTables['zh-cn'] = $zh2CN; - $this->mTables['zh-tw'] = $zh2TW; - $this->mTables['zh-sg'] = array_merge($zh2CN, $zh2SG); - $this->mTables['zh-hk'] = array_merge($zh2TW, $zh2HK); - $this->mTables['zh'] = array(); + $this->mTables = array( + 'zh-cn' => new ReplacementArray( $zh2CN ), + 'zh-tw' => new ReplacementArray( $zh2TW ), + 'zh-sg' => new ReplacementArray( array_merge($zh2CN, $zh2SG) ), + 'zh-hk' => new ReplacementArray( array_merge($zh2TW, $zh2HK) ), + 'zh' => new ReplacementArray + ); } function postLoadTables() { - $this->mTables['zh-sg'] = array_merge($this->mTables['zh-cn'], $this->mTables['zh-sg']); - $this->mTables['zh-hk'] = array_merge($this->mTables['zh-tw'], $this->mTables['zh-hk']); + $this->mTables['zh-sg']->merge( $this->mTables['zh-cn'] ); + $this->mTables['zh-hk']->merge( $this->mTables['zh-tw'] ); } /* there shouldn't be any latin text in Chinese conversion, so no need - to mark anything + to mark anything. + $noParse is there for compatibility with LanguageConvert::markNoConversion */ - function markNoConversion($text) { + function markNoConversion($text, $noParse = false) { return $text; } |