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
29 function convertPlural( $count, $forms ) {
30 if ( !count($forms) ) { return ''; }
31 $forms = $this->preConvertPlural( $forms, 5 );
33 if ( $count %
100 == 1 ) {
35 } elseif ( $count %
100 == 2 ) {
37 } elseif ( $count %
100 == 3 ||
$count %
100 == 4 ) {
39 } elseif ( $count != 0 ) {
44 return $forms[$index];