MediaWiki REL1_37
LanguageHu.php
Go to the documentation of this file.
1<?php
29class LanguageHu extends Language {
30
36 public 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}
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Hungarian localisation for MediaWiki.
convertGrammar( $word, $case)
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition Language.php:42
getCode()
Get the internal language code for this language object.