Merge "The 4th Database::select() parameter is the function name. The ORDER BY should...
[mediawiki.git] / languages / classes / LanguageHu.php
blobdbb6f5bbecae33c5fe19f45c033b31528fa37fff
1 <?php
3 /** Hungarian localisation for MediaWiki
5 * @ingroup Language
6 */
7 class LanguageHu extends Language {
9 /**
10 * @param $word string
11 * @param $case
12 * @return string
14 function convertGrammar( $word, $case ) {
15 global $wgGrammarForms;
16 if ( isset( $wgGrammarForms[$this->getCode()][$case][$word] ) ) {
17 return $wgGrammarForms[$this->getCode()][$case][$word];
20 switch ( $case ) {
21 case 'rol':
22 return $word . 'ról';
23 case 'ba':
24 return $word . 'ba';
25 case 'k':
26 return $word . 'k';
28 return '';