MediaWiki
REL1_24
|
00001 <?php 00029 class LanguageHsb extends Language { 00038 function convertGrammar( $word, $case ) { 00039 global $wgGrammarForms; 00040 if ( isset( $wgGrammarForms['hsb'][$case][$word] ) ) { 00041 return $wgGrammarForms['hsb'][$case][$word]; 00042 } 00043 00044 switch ( $case ) { 00045 case 'instrumental': # instrumental 00046 $word = 'z ' . $word; 00047 break; 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 }