The second parameter of some subclasses for normalizeForSearch() was only used for passing variant code to LanguageZh, it should be better to have this feature in the Language base class. Also, removed the duplicated implementation of normalizeForSearch() in LanguageYue, convertDoubleWidth() was done in the Language class. Change-Id: I7524ddc20378c9c3fb2cd885ea465cfe4b7d2d41
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
*
|
|
* @file
|
|
*/
|
|
|
|
/**
|
|
* Gan Chinese
|
|
*
|
|
* This handles both Traditional and Simplified Chinese.
|
|
* Right now, we only distinguish `gan_hans` and `gan_hant`.
|
|
*
|
|
* @ingroup Languages
|
|
*/
|
|
class LanguageGan extends LanguageZh {
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
protected function getSerchIndexVariant() {
|
|
return 'gan-hans';
|
|
}
|
|
}
|