66477bb331cd2b3b3e9366034e52e8e59299cd0f
3 /** Slovenian (Slovenščina)
7 class LanguageSl
extends Language
{
8 # Convert from the nominative form of a noun to some other case
9 # Invoked with {{GRAMMAR:case|word}}
11 * Cases: rodilnik, dajalnik, tožilnik, mestnik, orodnik
13 function convertGrammar( $word, $case ) {
14 global $wgGrammarForms;
15 if ( isset( $wgGrammarForms['sl'][$case][$word] ) ) {
16 return $wgGrammarForms['sl'][$case][$word];
20 case 'mestnik': # locative
21 $word = 'o ' . $word; break;
22 case 'orodnik': # instrumental
26 return $word; # this will return the original value for 'imenovalnik' (nominativ) and all undefined case values
35 function convertPlural( $count, $forms ) {
36 if ( !count( $forms ) ) { return ''; }
37 $forms = $this->preConvertPlural( $forms, 5 );
39 if ( $count %
100 == 1 ) {
41 } elseif ( $count %
100 == 2 ) {
43 } elseif ( $count %
100 == 3 ||
$count %
100 == 4 ) {
45 } elseif ( $count != 0 ) {
50 return $forms[$index];