Update jquery.i18n to dd14827
Changes: * b00217d: build: Remove unused 'pkg' property in Gruntfile * 5404f66: Use String#slice instead of String#substr or String#substring * b612e92: Fix \t masquerading as a space * 07c3fae: Add capability to set attributes and raw HTML Change-Id: I5352032a1cef9de9afdcc3717804c4957528dfd3
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
$.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 ) + 'գրքի';
|
||||
if ( word.slice( -1 ) === 'ա' ) {
|
||||
word = word.slice( 0, -1 ) + 'այի';
|
||||
} else if ( word.slice( -1 ) === 'ո' ) {
|
||||
word = word.slice( 0, -1 ) + 'ոյի';
|
||||
} else if ( word.slice( -4 ) === 'գիրք' ) {
|
||||
word = word.slice( 0, -4 ) + 'գրքի';
|
||||
} else {
|
||||
word = word + 'ի';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user