try all variants when displaying search results.
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 02:42:58 +0000 (02:42 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 02:42:58 +0000 (02:42 +0000)
languages/LanguageZh.php

index 644449a..c27036b 100644 (file)
@@ -122,8 +122,8 @@ class LanguageZh extends LanguageZh_cn {
 
        function convertForSearchResult( $termsArray ) {
                $terms = implode( '|', $termsArray );
-               $terms = $this->autoConvert( $terms, 'zh-cn' );
-               $ret = array_unique( explode('|', $termsArray.'|'.$terms) );
+               $terms = implode( '|', $this->autoConvertToAllVariants( $terms ) );
+               $ret = array_unique( explode('|', $terms) );
                return $ret;
        }
 }