MediaWiki REL1_40
LanguageGa.php
Go to the documentation of this file.
1<?php
23
29class LanguageGa extends Language {
30
39 public function convertGrammar( $word, $case ) {
40 $grammarForms =
41 MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::GrammarForms );
42 if ( isset( $grammarForms['ga'][$case][$word] ) ) {
43 return $grammarForms['ga'][$case][$word];
44 }
45
46 switch ( $case ) {
47 case 'ainmlae':
48 switch ( $word ) {
49 case 'an Domhnach':
50 $word = 'Dé Domhnaigh';
51 break;
52 case 'an Luan':
53 $word = 'Dé Luain';
54 break;
55 case 'an Mháirt':
56 $word = 'Dé Mháirt';
57 break;
58 case 'an Chéadaoin':
59 $word = 'Dé Chéadaoin';
60 break;
61 case 'an Déardaoin':
62 $word = 'Déardaoin';
63 break;
64 case 'an Aoine':
65 $word = 'Dé hAoine';
66 break;
67 case 'an Satharn':
68 $word = 'Dé Sathairn';
69 break;
70 }
71 }
72 return $word;
73 }
74
75}
Irish (Gaeilge)
convertGrammar( $word, $case)
Convert day names Invoked with {{GRAMMAR:transformation|word}}.
Base class for language-specific code.
Definition Language.php:56
A class containing constants representing the names of configuration variables.
Service locator for MediaWiki core services.