MediaWiki
REL1_34
LanguageHu.php
Go to the documentation of this file.
1
<?php
29
class
LanguageHu
extends
Language
{
30
36
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
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition
DefaultSettings.php:2986
LanguageHu
Hungarian localisation for MediaWiki.
Definition
LanguageHu.php:29
LanguageHu\convertGrammar
convertGrammar( $word, $case)
Definition
LanguageHu.php:36
Language
Internationalisation code.
Definition
Language.php:37
Language\getCode
getCode()
Get the internal language code for this language object.
Definition
Language.php:4291
languages
classes
LanguageHu.php
Generated on Fri Apr 5 2024 23:10:49 for MediaWiki by
1.9.8