Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F33807
LanguageHsb.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
834 B
Referenced Files
None
Subscribers
None
LanguageHsb.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
use
MediaWiki\Language\Language
;
use
MediaWiki\MainConfigNames
;
use
MediaWiki\MediaWikiServices
;
/**
* Upper Sorbian (Hornjoserbsce)
*
* @ingroup Languages
*/
class
LanguageHsb
extends
Language
{
/** @inheritDoc */
public
function
convertGrammar
(
$word
,
$case
)
{
$grammarForms
=
MediaWikiServices
::
getInstance
()->
getMainConfig
()->
get
(
MainConfigNames
::
GrammarForms
);
if
(
isset
(
$grammarForms
[
'hsb'
][
$case
][
$word
]
)
)
{
return
$grammarForms
[
'hsb'
][
$case
][
$word
];
}
switch
(
$case
)
{
case
'instrumental'
:
# instrumental
$word
=
'z '
.
$word
;
break
;
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
Thu, Dec 18, 10:26 (11 h, 40 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3d/a7/790e7f8cece51902c411b373b40a
Default Alt Text
LanguageHsb.php (834 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment