MediaWiki
REL1_31
LanguageSl.php
Go to the documentation of this file.
1
<?php
29
class
LanguageSl
extends
Language
{
30
# Convert from the nominative form of a noun to some other case
31
# Invoked with {{GRAMMAR:case|word}}
40
function
convertGrammar
( $word, $case ) {
41
global
$wgGrammarForms
;
42
if
( isset(
$wgGrammarForms
[
'sl'
][$case][$word] ) ) {
43
return
$wgGrammarForms
[
'sl'
][$case][$word];
44
}
45
46
switch
( $case ) {
47
case
'mestnik'
: # locative
48
$word =
'o '
. $word;
49
break
;
50
case
'orodnik'
: # instrumental
51
$word =
'z '
. $word;
52
break
;
53
}
54
55
# this will return the original value for 'imenovalnik' (nominativ) and
56
# all undefined case values.
57
return
$word;
58
}
59
}
$wgGrammarForms
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition
DefaultSettings.php:2904
LanguageSl
Slovenian (Slovenščina)
Definition
LanguageSl.php:29
LanguageSl\convertGrammar
convertGrammar( $word, $case)
Cases: rodilnik, dajalnik, tožilnik, mestnik, orodnik.
Definition
LanguageSl.php:40
Language
Internationalisation code.
Definition
Language.php:35
languages
classes
LanguageSl.php
Generated on Mon Nov 25 2024 15:35:39 for MediaWiki by
1.10.0