PrefixSearch: Avoid notice when no subpage exists
[mediawiki.git] / resources / src / mediawiki.language / languages / ga.js
blobfb4e9396550c5bb623bc7d56a2a64270400914ca
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;