return strtolower( $in );
}
+ function convertForSearchResult( $termsArray ) {
+ # some languages, e.g. Chinese, need to do a conversion
+ # in order for search results to be displayed correctly
+ return $termsArray;
+ }
+
function firstChar( $s ) {
# Get the first character of a string. In ASCII, return
# first byte of the string. UTF8 and others have to
return utf8_decode( $this->lang->convertTitle( utf8_encode( $text ) ) );
}
-
function getVariants() {
return $this->lang->getVariants();
}
+ function convertForSearchResult( $termsArray ) {
+ return $termsArray;
+ }
}
?>
return $t;
}
-
+
+ function convertForSearchResult( $termsArray ) {
+ $terms = implode( '|', $termsArray );
+ $terms = $this->autoConvert( $terms, 'zh-cn' );
+ $ret = array_unique( explode('|', $termsArray.'|'.$terms) );
+ return $ret;
+ }
}
?>