summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageHu.php
blob: f82bab2f5cc5c716115c6bca170b020451bb8450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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';
		}
	}
}