Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430292
KuConverter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
734 B
Referenced Files
None
Subscribers
None
KuConverter.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Language
;
use
Wikimedia\LangConv\FstReplacementMachine
;
class
KuConverter
extends
LanguageConverter
{
public
function
loadDefaultTables
()
{
$this
->
setMachine
(
new
FstReplacementMachine
(
'ku'
,
[
'ku-arab'
,
'ku-latn'
]
)
);
}
// phpcs:ignore MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic
public
function
findVariantLink
(
$link
,
$nt
,
$ignoreOtherCond
)
{
$ns
=
$nt
->
getNamespace
();
// do not try to find variants for usernames
if
(
$ns
->
isUser
()
||
$ns
->
isUserTalk
)
{
return
[
'nt'
=>
$nt
,
'link'
=>
$link
];
}
// FIXME check whether selected language is 'ku'
return
parent
::
findVariantLink
(
$link
,
$nt
,
$ignoreOtherCond
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 18:36 (4 h, 39 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
99/43/dc802cb846cb8960fd79c78600a4
Default Alt Text
KuConverter.php (734 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment