Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4127667
DummyConverter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
958 B
Referenced Files
None
Subscribers
None
DummyConverter.php
View Options
<?php
use
MediaWiki\Language\LanguageConverter
;
use
MediaWiki\Language\ReplacementArray
;
/**
* Test converter (from Tajiki to latin orthography)
*/
class
DummyConverter
extends
LanguageConverter
{
/**
* @var array
*/
private
$table
=
[
'б'
=>
'b'
,
'в'
=>
'v'
,
'г'
=>
'g'
,
];
/**
* Get Main language code.
*
* @return string
*/
public
function
getMainCode
():
string
{
return
'tg'
;
}
/**
* Get supported variants of the language.
*
* @return array
*/
public
function
getLanguageVariants
():
array
{
return
[
'tg'
,
'tg-latn'
,
'sgs'
,
'simple'
];
}
/**
* Get language variants fallbacks.
*
* @return array
*/
public
function
getVariantsFallbacks
():
array
{
return
[];
}
public
function
loadDefaultTables
():
array
{
return
[
'sgs'
=>
new
ReplacementArray
(),
'simple'
=>
new
ReplacementArray
(),
'tg-latn'
=>
new
ReplacementArray
(
$this
->
table
),
'tg'
=>
new
ReplacementArray
()
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 08:48 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ff/94/9c7b36a3127a5455f1fc9ce83da2
Default Alt Text
DummyConverter.php (958 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment