Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4108786
LanguageZh.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
LanguageZh.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Language
;
/* @note: Use of this class is currently disabled in production, see T346657 */
/** Chinese conversion code. */
class
LanguageZh
extends
Language
{
public
function
__construct
()
{
$variants
=
[
'zh'
,
'zh-hans'
,
'zh-hant'
,
'zh-cn'
,
'zh-hk'
,
'zh-mo'
,
'zh-my'
,
'zh-sg'
,
'zh-tw'
];
$variantfallbacks
=
[
'zh'
=>
[
'zh-hans'
,
'zh-hant'
,
'zh-cn'
,
'zh-tw'
,
'zh-hk'
,
'zh-sg'
,
'zh-mo'
,
'zh-my'
],
'zh-hans'
=>
[
'zh-cn'
,
'zh-sg'
,
'zh-my'
],
'zh-hant'
=>
[
'zh-tw'
,
'zh-hk'
,
'zh-mo'
],
'zh-cn'
=>
[
'zh-hans'
,
'zh-sg'
,
'zh-my'
],
'zh-sg'
=>
[
'zh-hans'
,
'zh-cn'
,
'zh-my'
],
'zh-my'
=>
[
'zh-hans'
,
'zh-sg'
,
'zh-cn'
],
'zh-tw'
=>
[
'zh-hant'
,
'zh-hk'
,
'zh-mo'
],
'zh-hk'
=>
[
'zh-hant'
,
'zh-mo'
,
'zh-tw'
],
'zh-mo'
=>
[
'zh-hant'
,
'zh-hk'
,
'zh-tw'
],
];
$manualLevel
=
[
'zh'
=>
'disable'
,
'zh-hans'
=>
'unidirectional'
,
'zh-hant'
=>
'unidirectional'
,
];
$converter
=
new
ZhConverter
(
$this
,
'zh'
,
$variants
,
$variantfallbacks
,
[],
$manualLevel
);
$this
->
setConverter
(
$converter
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 20:44 (2 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
27/75/954ea9e099ac2db74535b9621a90
Default Alt Text
LanguageZh.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment