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