MediaWiki REL1_33
LanguageDsb.php
Go to the documentation of this file.
1<?php
30class LanguageDsb extends Language {
39 function convertGrammar( $word, $case ) {
40 global $wgGrammarForms;
41 if ( isset( $wgGrammarForms['dsb'][$case][$word] ) ) {
42 return $wgGrammarForms['dsb'][$case][$word];
43 }
44
45 switch ( $case ) {
46 case 'instrumental': # instrumental
47 $word = 'z ' . $word;
48 case 'lokatiw': # lokatiw
49 $word = 'wo ' . $word;
50 break;
51 }
52
53 # this will return the original value for 'nominatiw' (nominativ) and
54 # all undefined case values.
55 return $word;
56 }
57}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Lower Sorbian (Dolnoserbski)
convertGrammar( $word, $case)
Convert from the nominative form of a noun to some other case Invoked with {{grammar:case|word}}.
Internationalisation code.
Definition Language.php:36