MediaWiki  master
LanguageBe_tarask.php
Go to the documentation of this file.
1 <?php
33 // phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
34 class LanguageBe_tarask extends Language {
45  public function normalizeForSearch( $string ) {
46  # MySQL fulltext index doesn't grok utf-8, so we
47  # need to fold cases and convert to hex
48 
49  # Replacing apostrophe sign U+2019 with U+0027
50  $s = preg_replace( '/\xe2\x80\x99/', '\'', $string );
51 
52  $s = parent::normalizeForSearch( $s );
53 
54  return $s;
55  }
56 }
$s
$s
Definition: mergeMessageFileList.php:185
LanguageBe_tarask
Belarusian in Taraškievica orthography (Беларуская тарашкевіца)
Definition: LanguageBe_tarask.php:34
LanguageBe_tarask\normalizeForSearch
normalizeForSearch( $string)
The Belarusian language uses apostrophe sign, but the characters used for this could be both U+0027 a...
Definition: LanguageBe_tarask.php:45
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition: Language.php:39