3 /** Lower Sorbian (Dolnoserbski)
7 class LanguageDsb
extends Language
{
10 * Convert from the nominative form of a noun to some other case
11 * Invoked with {{grammar:case|word}}
17 function convertGrammar( $word, $case ) {
18 global $wgGrammarForms;
19 if ( isset( $wgGrammarForms['dsb'][$case][$word] ) ) {
20 return $wgGrammarForms['dsb'][$case][$word];
24 case 'instrumental': # instrumental
26 case 'lokatiw': # lokatiw
27 $word = 'wo ' . $word;
31 return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
39 function convertPlural( $count, $forms ) {
40 if ( !count( $forms ) ) { return ''; }
41 $forms = $this->preConvertPlural( $forms, 4 );
43 switch ( abs( $count ) %
100 ) {
44 case 1: return $forms[0]; // singular
45 case 2: return $forms[1]; // dual
47 case 4: return $forms[2]; // plural
48 default: return $forms[3]; // pluralgen