3 /** Lower Sorbian (Dolnoserbski)
7 class LanguageDsb
extends Language
{
9 # Convert from the nominative form of a noun to some other case
10 # Invoked with {{GRAMMAR:case|word}}
12 function convertGrammar( $word, $case ) {
13 global $wgGrammarForms;
14 if ( isset( $wgGrammarForms['dsb'][$case][$word] ) ) {
15 return $wgGrammarForms['dsb'][$case][$word];
19 case 'instrumental': # instrumental
21 case 'lokatiw': # lokatiw
22 $word = 'wo ' . $word;
26 return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
29 function convertPlural( $count, $forms ) {
30 if ( !count($forms) ) { return ''; }
31 $forms = $this->preConvertPlural( $forms, 4 );
33 switch ( abs( $count ) %
100 ) {
34 case 1: return $forms[0]; // singular
35 case 2: return $forms[1]; // dual
37 case 4: return $forms[2]; // plural
38 default: return $forms[3]; // pluralgen