Localisation updates for core messages from translatewiki.net (2009-10-05 21:02 UTC)
[mediawiki.git] / languages / classes / LanguageGa.php
blob0ac7a408d15c2d61036fe0d43896ae7f73c0fdc0
1 <?php
3 /** Irish (Gaeilge)
5 * @ingroup Language
6 */
7 class LanguageGa extends Language {
8 # Convert day names
9 # Invoked with {{GRAMMAR:transformation|word}}
10 function convertGrammar( $word, $case ) {
11 global $wgGrammarForms;
12 if ( isset($wgGrammarForms['ga'][$case][$word]) ) {
13 return $wgGrammarForms['ga'][$case][$word];
16 switch ( $case ) {
17 case 'ainmlae':
18 switch ($word) {
19 case 'an Domhnach':
20 $word = 'Dé Domhnaigh'; break;
21 case 'an Luan':
22 $word = 'Dé Luain'; break;
23 case 'an Mháirt':
24 $word = 'Dé Mháirt'; break;
25 case 'an Chéadaoin':
26 $word = 'Dé Chéadaoin'; break;
27 case 'an Déardaoin':
28 $word = 'Déardaoin'; break;
29 case 'an Aoine':
30 $word = 'Dé hAoine'; break;
31 case 'an Satharn':
32 $word = 'Dé Sathairn'; break;
35 return $word;
38 function convertPlural( $count, $forms ) {
39 if ( !count($forms) ) { return ''; }
41 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ga
42 $forms = $this->preConvertPlural( $forms, 3 );
44 if ( $count == 1 ) {
45 $index = 1;
46 } elseif( $count == 2 ) {
47 $index = 2;
48 } else {
49 $index = 3;
51 return $forms[$index];