MediaWiki master
LanguageGa.php
Go to the documentation of this file.
1<?php
23
29class 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}
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:63
A class containing constants representing the names of configuration variables.
Service locator for MediaWiki core services.