MediaWiki
master
LanguageHu.php
Go to the documentation of this file.
1
<?php
21
use
MediaWiki\MainConfigNames
;
22
use
MediaWiki\MediaWikiServices
;
23
29
class
LanguageHu
extends
Language {
30
31
public
function
convertGrammar
( $word, $case ) {
32
$grammarForms = MediaWikiServices::getInstance()->getMainConfig()
33
->get( MainConfigNames::GrammarForms );
34
if
( isset( $grammarForms[$this->getCode()][$case][$word] ) ) {
35
return
$grammarForms[$this->getCode()][$case][$word];
36
}
37
38
switch
( $case ) {
39
case
'rol'
:
40
return
$word .
'ról'
;
41
case
'ba'
:
42
return
$word .
'ba'
;
43
case
'k'
:
44
return
$word .
'k'
;
45
}
46
return
''
;
47
}
48
}
LanguageHu
Hungarian localisation for MediaWiki.
Definition
LanguageHu.php:29
LanguageHu\convertGrammar
convertGrammar( $word, $case)
Definition
LanguageHu.php:31
MediaWiki\MainConfigNames
A class containing constants representing the names of configuration variables.
Definition
MainConfigNames.php:22
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:240
includes
languages
LanguageHu.php
Generated on Sun Sep 15 2024 13:23:39 for MediaWiki by
1.10.0