MediaWiki  master
LanguageBe_tarask.php
Go to the documentation of this file.
1 <?php
30 // phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
31 class LanguageBe_tarask extends Language {
42  public function normalizeForSearch( $string ) {
43  # MySQL fulltext index doesn't grok utf-8, so we
44  # need to fold cases and convert to hex
45 
46  # Replacing apostrophe sign U+2019 with U+0027
47  $s = str_replace( "\u{2019}", '\'', $string );
48 
49  $s = parent::normalizeForSearch( $s );
50 
51  return $s;
52  }
53 }
Belarusian in Taraškievica orthography (Беларуская тарашкевіца)
normalizeForSearch( $string)
The Belarusian language uses apostrophe sign, but the characters used for this could be both U+0027 a...
Base class for language-specific code.
Definition: Language.php:54
foreach( $mmfl['setupFiles'] as $fileName) if( $queue) if(empty( $mmfl['quiet'])) $s