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