First segment then convert when preparing for indexing.
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Sat, 4 Dec 2004 04:44:19 +0000 (04:44 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Sat, 4 Dec 2004 04:44:19 +0000 (04:44 +0000)
languages/LanguageZh.php

index c27036b..e24af26 100644 (file)
@@ -112,8 +112,8 @@ class LanguageZh extends LanguageZh_cn {
                //better to use zh-cn for search, since conversion from 
                //Traditional to Simplified is less ambiguous than the
                //other way around
-        $string = $this->autoConvert($string, 'zh-cn');
                $t = $this->mZhClient->segment($string);
+        $t = $this->autoConvert($t, 'zh-cn');
                $t = LanguageUtf8::stripForSearch( $t );
                wfProfileOut( $fname );
                return $t;