MediaWiki master
LanguageGa.php
Go to the documentation of this file.
1<?php
24
30class LanguageGa extends Language {
31 public function convertGrammar( $word, $case ) {
32 $grammarForms =
33 MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::GrammarForms );
34 if ( isset( $grammarForms['ga'][$case][$word] ) ) {
35 return $grammarForms['ga'][$case][$word];
36 }
37
38 switch ( $case ) {
39 case 'ainmlae':
40 switch ( $word ) {
41 case 'an Domhnach':
42 $word = 'Dé Domhnaigh';
43 break;
44 case 'an Luan':
45 $word = 'Dé Luain';
46 break;
47 case 'an Mháirt':
48 $word = 'Dé Mháirt';
49 break;
50 case 'an Chéadaoin':
51 $word = 'Dé Chéadaoin';
52 break;
53 case 'an Déardaoin':
54 $word = 'Déardaoin';
55 break;
56 case 'an Aoine':
57 $word = 'Dé hAoine';
58 break;
59 case 'an Satharn':
60 $word = 'Dé Sathairn';
61 break;
62 }
63 }
64 return $word;
65 }
66
67}
Irish (Gaeilge)
convertGrammar( $word, $case)
Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} ...
Base class for language-specific code.
Definition Language.php:80
A class containing constants representing the names of configuration variables.
Service locator for MediaWiki core services.