MediaWiki  1.23.6
LanguageBe_tarask.php
Go to the documentation of this file.
1 <?php
33 class LanguageBe_tarask extends Language {
44  function normalizeForSearch( $string ) {
45  wfProfileIn( __METHOD__ );
46 
47  # MySQL fulltext index doesn't grok utf-8, so we
48  # need to fold cases and convert to hex
49 
50  # Replacing apostrophe sign U+2019 with U+0027
51  $s = preg_replace( '/\xe2\x80\x99/', '\'', $string );
52 
53  $s = parent::normalizeForSearch( $s );
54 
55  wfProfileOut( __METHOD__ );
56  return $s;
57  }
58 
67  function commafy( $_ ) {
68  if ( preg_match( '/^-?\d{1,4}(\.\d*)?$/', $_ ) ) {
69  return $_;
70  } else {
71  return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
72  }
73  }
74 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
LanguageBe_tarask\commafy
commafy( $_)
Four-digit number should be without group commas (spaces) So "1 234 567", "12 345" but "1234".
Definition: LanguageBe_tarask.php:67
wfProfileIn
wfProfileIn( $functionname)
Begin profiling of a function.
Definition: Profiler.php:33
$s
$s
Definition: mergeMessageFileList.php:156
LanguageBe_tarask
Belarusian in Taraškievica orthography (Беларуская тарашкевіца)
Definition: LanguageBe_tarask.php:33
wfProfileOut
wfProfileOut( $functionname='missing')
Stop profiling of a function.
Definition: Profiler.php:46
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:44
Language
Internationalisation code.
Definition: Language.php:74