MediaWiki master
LanguageGa.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Languages;
8
12
18class LanguageGa extends Language {
20 public function convertGrammar( $word, $case ) {
21 $grammarForms =
23 if ( isset( $grammarForms['ga'][$case][$word] ) ) {
24 return $grammarForms['ga'][$case][$word];
25 }
26
27 switch ( $case ) {
28 case 'ainmlae':
29 switch ( $word ) {
30 case 'an Domhnach':
31 $word = 'Dé Domhnaigh';
32 break;
33 case 'an Luan':
34 $word = 'Dé Luain';
35 break;
36 case 'an Mháirt':
37 $word = 'Dé Mháirt';
38 break;
39 case 'an Chéadaoin':
40 $word = 'Dé Chéadaoin';
41 break;
42 case 'an Déardaoin':
43 $word = 'Déardaoin';
44 break;
45 case 'an Aoine':
46 $word = 'Dé hAoine';
47 break;
48 case 'an Satharn':
49 $word = 'Dé Sathairn';
50 break;
51 }
52 }
53 return $word;
54 }
55
56}
57
59class_alias( LanguageGa::class, 'LanguageGa' );
Base class for language-specific code.
Definition Language.php:69
convertGrammar( $word, $case)
Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} ...
A class containing constants representing the names of configuration variables.
const GrammarForms
Name constant for the GrammarForms setting, for use with Config::get()
Service locator for MediaWiki core services.
static getInstance()
Returns the global default instance of the top level service locator.