Merge "Typo fix"
[mediawiki.git] / resources / mediawiki.language / languages / ga.js
blobc13e8321c4b5947cc272dbc7072694cb174697aa
1 /**
2  * Irish (Gaeilge) language functions
3  */
5 mediaWiki.language.convertGrammar = function ( word, form ) {
6         /*jshint onecase:true */
7         var grammarForms = mediaWiki.language.getData( 'ga', 'grammarForms' );
8         if ( grammarForms && grammarForms[form] ) {
9                 return grammarForms[form][word];
10         }
11         switch ( form ) {
12                 case 'ainmlae':
13                         switch ( word ) {
14                                 case 'an Domhnach':
15                                         word = 'Dé Domhnaigh';
16                                         break;
17                                 case 'an Luan':
18                                         word = 'Dé Luain';
19                                         break;
20                                 case 'an Mháirt':
21                                         word = 'Dé Mháirt';
22                                         break;
23                                 case 'an Chéadaoin':
24                                         word = 'Dé Chéadaoin';
25                                         break;
26                                 case 'an Déardaoin':
27                                         word = 'Déardaoin';
28                                         break;
29                                 case 'an Aoine':
30                                         word = 'Dé hAoine';
31                                         break;
32                                 case 'an Satharn':
33                                         word = 'Dé Sathairn';
34                                         break;
35                         }
36         }
37         return word;