MediaWiki
REL1_24
|
00001 <?php 00029 class LanguageBs extends Language { 00041 function convertGrammar( $word, $case ) { 00042 global $wgGrammarForms; 00043 if ( isset( $wgGrammarForms['bs'][$case][$word] ) ) { 00044 return $wgGrammarForms['bs'][$case][$word]; 00045 } 00046 switch ( $case ) { 00047 case 'instrumental': # instrumental 00048 $word = 's ' . $word; 00049 break; 00050 case 'lokativ': # locative 00051 $word = 'o ' . $word; 00052 break; 00053 } 00054 00055 # this will return the original value for 'nominativ' (nominative) 00056 # and all undefined case values. 00057 return $word; 00058 } 00059 }