Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7430668
ZhConverter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
780 B
Referenced Files
None
Subscribers
None
ZhConverter.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Language
;
use
Wikimedia\LangConv\ZhReplacementMachine
;
/* @note: Use of this class is currently disabled in production, see T346657 */
class
ZhConverter
extends
LanguageConverter
{
public
function
loadDefaultTables
()
{
$this
->
setMachine
(
new
ZhReplacementMachine
()
);
}
// 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 'zh'
return
parent
::
findVariantLink
(
$link
,
$nt
,
$ignoreOtherCond
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 10:35 (9 h, 45 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cd/dd/8e93fad2a6f2e0054f17e9207155
Default Alt Text
ZhConverter.php (780 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment