Merge "Don't check namespace in SpecialWantedtemplates"
[lhc/web/wiklou.git] / resources / lib / jquery.i18n / src / languages / hy.js
1 /**
2 * Armenian (Հայերեն) language functions
3 */
4
5 ( function ( $ ) {
6 'use strict';
7
8 $.i18n.languages.hy = $.extend( {}, $.i18n.languages['default'], {
9 convertGrammar: function ( word, form ) {
10 if ( form === 'genitive' ) { // սեռական հոլով
11 if ( word.substr( -1 ) === 'ա' ) {
12 word = word.substr( 0, word.length - 1 ) + 'այի';
13 } else if ( word.substr( -1 ) === 'ո' ) {
14 word = word.substr( 0, word.length - 1 ) + 'ոյի';
15 } else if ( word.substr( -4 ) === 'գիրք' ) {
16 word = word.substr( 0, word.length - 4 ) + 'գրքի';
17 } else {
18 word = word + 'ի';
19 }
20 }
21
22 return word;
23 }
24 } );
25 }( jQuery ) );