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