MediaWiki
REL1_24
|
00001 <?php 00030 class LanguageDsb extends Language { 00039 function convertGrammar( $word, $case ) { 00040 global $wgGrammarForms; 00041 if ( isset( $wgGrammarForms['dsb'][$case][$word] ) ) { 00042 return $wgGrammarForms['dsb'][$case][$word]; 00043 } 00044 00045 switch ( $case ) { 00046 case 'instrumental': # instrumental 00047 $word = 'z ' . $word; 00048 case 'lokatiw': # lokatiw 00049 $word = 'wo ' . $word; 00050 break; 00051 } 00052 00053 # this will return the original value for 'nominatiw' (nominativ) and 00054 # all undefined case values. 00055 return $word; 00056 } 00057 }