Remove jquery.i18n code that the ULS extension overrides
Instead of using the whole jquery.i18n code, use only required parts that are not customized in MW ULS. For this define a new RL module ext.uls.i18n. Also refactor MW message store for jquery.i18n. Change-Id: Idda9fe505428ade409d937314d7216ebb4232c36
This commit is contained in:
committed by
Amire80
parent
a14f941f48
commit
28154206bf
25
lib/jquery.i18n/languages/hy.js
Normal file
25
lib/jquery.i18n/languages/hy.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Armenian (Հայերեն) language functions
|
||||
*/
|
||||
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
$.i18n.languages.hy = $.extend( {}, $.i18n.languages['default'], {
|
||||
convertGrammar: function ( word, form ) {
|
||||
if ( form === 'genitive' ) { // սեռական հոլով
|
||||
if ( word.substr( -1 ) === 'ա' ) {
|
||||
word = word.substr( 0, word.length - 1 ) + 'այի';
|
||||
} else if ( word.substr( -1 ) === 'ո' ) {
|
||||
word = word.substr( 0, word.length - 1 ) + 'ոյի';
|
||||
} else if ( word.substr( -4 ) === 'գիրք' ) {
|
||||
word = word.substr( 0, word.length - 4 ) + 'գրքի';
|
||||
} else {
|
||||
word = word + 'ի';
|
||||
}
|
||||
}
|
||||
|
||||
return word;
|
||||
}
|
||||
} );
|
||||
}( jQuery ) );
|
||||
Reference in New Issue
Block a user