Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5965608
LanguageDsb.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
884 B
Referenced Files
None
Subscribers
None
LanguageDsb.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
* @author Niklas Laxström
*/
use
MediaWiki\Language\Language
;
use
MediaWiki\MainConfigNames
;
use
MediaWiki\MediaWikiServices
;
/**
* Lower Sorbian (Dolnoserbski) specific code.
*
* @ingroup Languages
*/
class
LanguageDsb
extends
Language
{
/** @inheritDoc */
public
function
convertGrammar
(
$word
,
$case
)
{
$grammarForms
=
MediaWikiServices
::
getInstance
()->
getMainConfig
()->
get
(
MainConfigNames
::
GrammarForms
);
if
(
isset
(
$grammarForms
[
'dsb'
][
$case
][
$word
]
)
)
{
return
$grammarForms
[
'dsb'
][
$case
][
$word
];
}
switch
(
$case
)
{
case
'instrumental'
:
# instrumental
$word
=
'z '
.
$word
;
// fall-through
case
'lokatiw'
:
# lokatiw
$word
=
'wo '
.
$word
;
break
;
}
# this will return the original value for 'nominatiw' (nominativ) and
# all undefined case values.
return
$word
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 11:05 (6 d, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d0/2c/9e162fe3f0d0d512f7d6712fe5cc
Default Alt Text
LanguageDsb.php (884 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment