MediaWiki REL1_33
LanguageHu.php
Go to the documentation of this file.
1<?php
29class LanguageHu extends Language {
30
36 function convertGrammar( $word, $case ) {
37 global $wgGrammarForms;
38 if ( isset( $wgGrammarForms[$this->getCode()][$case][$word] ) ) {
39 return $wgGrammarForms[$this->getCode()][$case][$word];
40 }
41
42 switch ( $case ) {
43 case 'rol':
44 return $word . 'ról';
45 case 'ba':
46 return $word . 'ba';
47 case 'k':
48 return $word . 'k';
49 }
50 return '';
51 }
52}
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.
Hungarian localisation for MediaWiki.
convertGrammar( $word, $case)
Internationalisation code.
Definition Language.php:36
getCode()
Get the internal language code for this language object.