MediaWiki
1.34.4
LanguageHsb.php
Go to the documentation of this file.
1
<?php
29
class
LanguageHsb
extends
Language
{
38
function
convertGrammar
( $word, $case ) {
39
global
$wgGrammarForms
;
40
if
( isset(
$wgGrammarForms
[
'hsb'
][$case][$word] ) ) {
41
return
$wgGrammarForms
[
'hsb'
][$case][$word];
42
}
43
44
switch
( $case ) {
45
case
'instrumental'
: # instrumental
46
$word =
'z '
. $word;
47
break
;
48
case
'lokatiw'
: # lokatiw
49
$word =
'wo '
. $word;
50
break
;
51
}
52
53
# this will return the original value for 'nominatiw' (nominativ) and
54
# all undefined case values.
55
return
$word;
56
}
57
}
LanguageHsb\convertGrammar
convertGrammar( $word, $case)
Convert from the nominative form of a noun to some other case Invoked with {{grammar:case|word}}.
Definition:
LanguageHsb.php:38
$wgGrammarForms
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition:
DefaultSettings.php:2986
LanguageHsb
Upper Sorbian (Hornjoserbsce)
Definition:
LanguageHsb.php:29
Language
Internationalisation code.
Definition:
Language.php:37
languages
classes
LanguageHsb.php
Generated on Thu Sep 24 2020 22:30:30 for MediaWiki by
1.8.18