Update migrateUserGroup to deal with primary key issue
[mediawiki.git] / resources / mediawiki.language / languages / ga.js
blob51fce35b6de47bc22fc96f85a20af2fe0c89fd37
1 /**
2  * Irish (Gaeilge) language functions
3  */
5 mediaWiki.language.convertPlural = function( count, forms ) {
6         forms = mediaWiki.language.preConvertPlural( forms, 3 );
7         if ( count == 1 ) {
8                 return forms[0];
9         }
10         if ( count == 2 ) {
11                 return forms[1];
12         }
13         return forms[2];
17 mediaWiki.language.convertGrammar = function( word, form ) {
18         var grammarForms = mw.language.getData( 'ga', 'grammarForms' );
19         if ( grammarForms && grammarForms[form] ) {
20                 return grammarForms[form][word] ;
21         }
22         switch ( form ) {
23                 case 'ainmlae':
24                         switch ( word ) {
25                                 case 'an Domhnach':
26                                         word = 'Dé Domhnaigh';
27                                         break;
28                                 case 'an Luan':
29                                         word = 'Dé Luain';
30                                         break;
31                                 case 'an Mháirt':
32                                         word = 'Dé Mháirt';
33                                         break;
34                                 case 'an Chéadaoin':
35                                         word = 'Dé Chéadaoin';
36                                         break;
37                                 case 'an Déardaoin':
38                                         word = 'Déardaoin';
39                                         break;
40                                 case 'an Aoine':
41                                         word = 'Dé hAoine';
42                                         break;
43                                 case 'an Satharn':
44                                         word = 'Dé Sathairn';
45                                         break;
46                         }
47         }
48         return word;