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