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