Update jquery.i18n from upstream

Upstream: https://github.com/wikimedia/jquery.i18n
Upstream changes:
* Fixed a potential js error because of wrong logic
* Fixed some JShint errors
* Added license and credits files
* Updated gitignore file
* Fixed uk and ru grammar rules and updating tests
* Source code formatting updates

Change-Id: I43433cc3d9993045160dc85ed9e73370d22794cf
This commit is contained in:
Santhosh Thottingal
2013-11-08 16:08:54 +05:30
parent fca6e1b17b
commit 42deb56323
9 changed files with 97 additions and 81 deletions

View File

@@ -9,14 +9,17 @@
$.i18n.languages.os = $.extend( {}, $.i18n.languages['default'], {
convertGrammar: function ( word, form ) {
var endAllative, jot, hyphen, ending;
// Ending for allative case
var endAllative = 'мæ';
endAllative = 'мæ';
// Variable for 'j' beetwen vowels
var jot = '';
jot = '';
// Variable for "-" for not Ossetic words
var hyphen = '';
hyphen = '';
// Variable for ending
var ending = '';
ending = '';
// Checking if the $word is in plural form
if ( word.match( /тæ$/i ) ) {
word = word.substring( 0, word.length - 1 );