wiki.techinc.nl/includes/languages/LanguageGan.php
Func 15a3a214b1 Language: Move search index variant handling from subclasses
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
2023-05-17 20:14:08 +08:00

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';
}
}