MediaWiki REL1_34
LanguageGa.php
Go to the documentation of this file.
1<?php
29class LanguageGa extends Language {
30
39 function convertGrammar( $word, $case ) {
40 global $wgGrammarForms;
41 if ( isset( $wgGrammarForms['ga'][$case][$word] ) ) {
42 return $wgGrammarForms['ga'][$case][$word];
43 }
44
45 switch ( $case ) {
46 case 'ainmlae':
47 switch ( $word ) {
48 case 'an Domhnach':
49 $word = 'Dé Domhnaigh';
50 break;
51 case 'an Luan':
52 $word = 'Dé Luain';
53 break;
54 case 'an Mháirt':
55 $word = 'Dé Mháirt';
56 break;
57 case 'an Chéadaoin':
58 $word = 'Dé Chéadaoin';
59 break;
60 case 'an Déardaoin':
61 $word = 'Déardaoin';
62 break;
63 case 'an Aoine':
64 $word = 'Dé hAoine';
65 break;
66 case 'an Satharn':
67 $word = 'Dé Sathairn';
68 break;
69 }
70 }
71 return $word;
72 }
73
74}
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Irish (Gaeilge)
convertGrammar( $word, $case)
Convert day names Invoked with {{GRAMMAR:transformation|word}}.
Internationalisation code.
Definition Language.php:37