Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6031400
LanguageBe_tarask.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
LanguageBe_tarask.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
* @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
* @license GPL-2.0-or-later
* @license GFDL-1.3-or-later
*/
use
MediaWiki\Language\Language
;
/**
* Belarusian in Taraškievica orthography (Беларуская тарашкевіца)
*
* @ingroup Languages
* @see https://be-tarask.wikipedia.org/wiki/Project_talk:LanguageBe_tarask.php
*/
// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
class
LanguageBe_tarask
extends
Language
{
/**
* The Belarusian language uses apostrophe sign,
* but the characters used for this could be both U+0027 and U+2019.
* This function unifies apostrophe sign in search index values
* to enable search using both apostrophe signs.
*
* @inheritDoc
*/
public
function
normalizeForSearch
(
$text
)
{
# MySQL fulltext index doesn't grok utf-8, so we
# need to fold cases and convert to hex
# Replacing apostrophe sign U+2019 with U+0027
$text
=
str_replace
(
"
\u
{2019}"
,
'
\'
'
,
$text
);
return
parent
::
normalizeForSearch
(
$text
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 18:03 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
77/d1/a88a49d86d2a61fa5870f3974d7e
Default Alt Text
LanguageBe_tarask.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment