29 lines
532 B
PHP
29 lines
532 B
PHP
<?php
|
|
|
|
/** Hungarian localisation for MediaWiki
|
|
*
|
|
* @ingroup Language
|
|
*/
|
|
class LanguageHu extends Language {
|
|
|
|
/**
|
|
* @param $word string
|
|
* @param $case
|
|
* @return string
|
|
*/
|
|
function convertGrammar( $word, $case ) {
|
|
global $wgGrammarForms;
|
|
if ( isset( $wgGrammarForms[$this->getCode()][$case][$word] ) ) {
|
|
return $wgGrammarForms[$this->getCode()][$case][$word];
|
|
}
|
|
|
|
switch ( $case ) {
|
|
case 'rol':
|
|
return $word . 'ról';
|
|
case 'ba':
|
|
return $word . 'ba';
|
|
case 'k':
|
|
return $word . 'k';
|
|
}
|
|
}
|
|
}
|