From: Zheng Zhu Date: Sat, 4 Dec 2004 04:44:19 +0000 (+0000) Subject: First segment then convert when preparing for indexing. X-Git-Tag: 1.5.0alpha1~1156 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=03f03547ffebefee14b39641c906854897c6291a;p=lhc%2Fweb%2Fwiklou.git First segment then convert when preparing for indexing. --- diff --git a/languages/LanguageZh.php b/languages/LanguageZh.php index c27036b26b..e24af2649d 100644 --- a/languages/LanguageZh.php +++ b/languages/LanguageZh.php @@ -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;