MediaWiki
master
LanguageGa.php
Go to the documentation of this file.
1
<?php
21
use
MediaWiki\MainConfigNames
;
22
use
MediaWiki\MediaWikiServices
;
23
29
class
LanguageGa
extends
Language {
30
public
function
convertGrammar
( $word, $case ) {
31
$grammarForms =
32
MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::GrammarForms );
33
if
( isset( $grammarForms[
'ga'
][$case][$word] ) ) {
34
return
$grammarForms[
'ga'
][$case][$word];
35
}
36
37
switch
( $case ) {
38
case
'ainmlae'
:
39
switch
( $word ) {
40
case
'an Domhnach'
:
41
$word =
'Dé Domhnaigh'
;
42
break
;
43
case
'an Luan'
:
44
$word =
'Dé Luain'
;
45
break
;
46
case
'an Mháirt'
:
47
$word =
'Dé Mháirt'
;
48
break
;
49
case
'an Chéadaoin'
:
50
$word =
'Dé Chéadaoin'
;
51
break
;
52
case
'an Déardaoin'
:
53
$word =
'Déardaoin'
;
54
break
;
55
case
'an Aoine'
:
56
$word =
'Dé hAoine'
;
57
break
;
58
case
'an Satharn'
:
59
$word =
'Dé Sathairn'
;
60
break
;
61
}
62
}
63
return
$word;
64
}
65
66
}
LanguageGa
Irish (Gaeilge)
Definition
LanguageGa.php:29
LanguageGa\convertGrammar
convertGrammar( $word, $case)
Definition
LanguageGa.php:30
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
LanguageGa.php
Generated on Fri Sep 20 2024 17:23:45 for MediaWiki by
1.10.0