diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
commit | b9b85843572bf283f48285001e276ba7e61b63f6 (patch) | |
tree | 4c6f4571552ada9ccfb4030481dcf77308f8b254 /languages/classes/LanguageZh.php | |
parent | d9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff) |
updated to MediaWiki 1.14.0
Diffstat (limited to 'languages/classes/LanguageZh.php')
-rw-r--r-- | languages/classes/LanguageZh.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/languages/classes/LanguageZh.php b/languages/classes/LanguageZh.php index 3d162a8e..09362690 100644 --- a/languages/classes/LanguageZh.php +++ b/languages/classes/LanguageZh.php @@ -126,14 +126,14 @@ class LanguageZh extends LanguageZh_hans { // word segmentation function stripForSearch( $string ) { - $fname="LanguageZh::stripForSearch"; - wfProfileIn( $fname ); + wfProfileIn( __METHOD__ ); // eventually this should be a word segmentation // for now just treat each character as a word + // @fixme only do this for Han characters... $t = preg_replace( - "/([\\xc0-\\xff][\\x80-\\xbf]*)/e", - "' ' .\"$1\"", $string); + "/([\\xc0-\\xff][\\x80-\\xbf]*)/", + " $1", $string); //always convert to zh-hans before indexing. it should be //better to use zh-hans for search, since conversion from @@ -142,7 +142,7 @@ class LanguageZh extends LanguageZh_hans { $t = $this->mConverter->autoConvert($t, 'zh-hans'); $t = parent::stripForSearch( $t ); - wfProfileOut( $fname ); + wfProfileOut( __METHOD__ ); return $t; } |