Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1427376
LanguageBs.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
897 B
Referenced Files
None
Subscribers
None
LanguageBs.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
use
MediaWiki\Language\Language
;
use
MediaWiki\MainConfigNames
;
use
MediaWiki\MediaWikiServices
;
/**
* Bosnian (bosanski)
*
* @ingroup Languages
*/
class
LanguageBs
extends
Language
{
/**
* Cases: genitiv, dativ, akuzativ, vokativ, instrumental, lokativ
*
* @inheritDoc
*/
public
function
convertGrammar
(
$word
,
$case
)
{
$grammarForms
=
MediaWikiServices
::
getInstance
()->
getMainConfig
()->
get
(
MainConfigNames
::
GrammarForms
);
if
(
isset
(
$grammarForms
[
'bs'
][
$case
][
$word
]
)
)
{
return
$grammarForms
[
'bs'
][
$case
][
$word
];
}
switch
(
$case
)
{
case
'instrumental'
:
# instrumental
$word
=
's '
.
$word
;
break
;
case
'lokativ'
:
# locative
$word
=
'o '
.
$word
;
break
;
}
# this will return the original value for 'nominativ' (nominative)
# and all undefined case values.
return
$word
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 14:33 (23 h, 42 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
07/db/7236db9bfaae0909da70ca29bf03
Default Alt Text
LanguageBs.php (897 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment