Upgrade jquery.i18n library from v1.0.2 to v1.0.3
Change-Id: Ia1d346f38180a11602bbac66755cb36f98b98948
This commit is contained in:
@@ -5,262 +5,263 @@
|
||||
var language = {
|
||||
// CLDR plural rules generated using
|
||||
// libs/CLDRPluralRuleParser/tools/PluralXML2JSON.html
|
||||
'pluralRules': {
|
||||
'ak': {
|
||||
'one': 'n = 0..1'
|
||||
pluralRules: {
|
||||
ak: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'am': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
am: {
|
||||
one: 'i = 0 or n = 1'
|
||||
},
|
||||
'ar': {
|
||||
'zero': 'n = 0',
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2',
|
||||
'few': 'n % 100 = 3..10',
|
||||
'many': 'n % 100 = 11..99'
|
||||
ar: {
|
||||
zero: 'n = 0',
|
||||
one: 'n = 1',
|
||||
two: 'n = 2',
|
||||
few: 'n % 100 = 3..10',
|
||||
many: 'n % 100 = 11..99'
|
||||
},
|
||||
'be': {
|
||||
'one': 'n % 10 = 1 and n % 100 != 11',
|
||||
'few': 'n % 10 = 2..4 and n % 100 != 12..14',
|
||||
'many': 'n % 10 = 0 or n % 10 = 5..9 or n % 100 = 11..14'
|
||||
be: {
|
||||
one: 'n % 10 = 1 and n % 100 != 11',
|
||||
few: 'n % 10 = 2..4 and n % 100 != 12..14',
|
||||
many: 'n % 10 = 0 or n % 10 = 5..9 or n % 100 = 11..14'
|
||||
},
|
||||
'bh': {
|
||||
'one': 'n = 0..1'
|
||||
bh: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'bn': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
bn: {
|
||||
one: 'i = 0 or n = 1'
|
||||
},
|
||||
'br': {
|
||||
'one': 'n % 10 = 1 and n % 100 != 11,71,91',
|
||||
'two': 'n % 10 = 2 and n % 100 != 12,72,92',
|
||||
'few': 'n % 10 = 3..4,9 and n % 100 != 10..19,70..79,90..99',
|
||||
'many': 'n != 0 and n % 1000000 = 0'
|
||||
br: {
|
||||
one: 'n % 10 = 1 and n % 100 != 11,71,91',
|
||||
two: 'n % 10 = 2 and n % 100 != 12,72,92',
|
||||
few: 'n % 10 = 3..4,9 and n % 100 != 10..19,70..79,90..99',
|
||||
many: 'n != 0 and n % 1000000 = 0'
|
||||
},
|
||||
'bs': {
|
||||
'one': 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
'few': 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
bs: {
|
||||
one: 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
few: 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
},
|
||||
'cs': {
|
||||
'one': 'i = 1 and v = 0',
|
||||
'few': 'i = 2..4 and v = 0',
|
||||
'many': 'v != 0'
|
||||
cs: {
|
||||
one: 'i = 1 and v = 0',
|
||||
few: 'i = 2..4 and v = 0',
|
||||
many: 'v != 0'
|
||||
},
|
||||
'cy': {
|
||||
'zero': 'n = 0',
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2',
|
||||
'few': 'n = 3',
|
||||
'many': 'n = 6'
|
||||
cy: {
|
||||
zero: 'n = 0',
|
||||
one: 'n = 1',
|
||||
two: 'n = 2',
|
||||
few: 'n = 3',
|
||||
many: 'n = 6'
|
||||
},
|
||||
'da': {
|
||||
'one': 'n = 1 or t != 0 and i = 0,1'
|
||||
da: {
|
||||
one: 'n = 1 or t != 0 and i = 0,1'
|
||||
},
|
||||
'fa': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
fa: {
|
||||
one: 'i = 0 or n = 1'
|
||||
},
|
||||
'ff': {
|
||||
'one': 'i = 0,1'
|
||||
ff: {
|
||||
one: 'i = 0,1'
|
||||
},
|
||||
'fil': {
|
||||
'one': 'i = 0..1 and v = 0'
|
||||
fil: {
|
||||
one: 'i = 0..1 and v = 0'
|
||||
},
|
||||
'fr': {
|
||||
'one': 'i = 0,1'
|
||||
fr: {
|
||||
one: 'i = 0,1'
|
||||
},
|
||||
'ga': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2',
|
||||
'few': 'n = 3..6',
|
||||
'many': 'n = 7..10'
|
||||
ga: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2',
|
||||
few: 'n = 3..6',
|
||||
many: 'n = 7..10'
|
||||
},
|
||||
'gd': {
|
||||
'one': 'n = 1,11',
|
||||
'two': 'n = 2,12',
|
||||
'few': 'n = 3..10,13..19'
|
||||
gd: {
|
||||
one: 'n = 1,11',
|
||||
two: 'n = 2,12',
|
||||
few: 'n = 3..10,13..19'
|
||||
},
|
||||
'gu': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
gu: {
|
||||
one: 'i = 0 or n = 1'
|
||||
},
|
||||
'guw': {
|
||||
'one': 'n = 0..1'
|
||||
guw: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'gv': {
|
||||
'one': 'n % 10 = 1',
|
||||
'two': 'n % 10 = 2',
|
||||
'few': 'n % 100 = 0,20,40,60'
|
||||
gv: {
|
||||
one: 'n % 10 = 1',
|
||||
two: 'n % 10 = 2',
|
||||
few: 'n % 100 = 0,20,40,60'
|
||||
},
|
||||
'he': {
|
||||
'one': 'i = 1 and v = 0',
|
||||
'two': 'i = 2 and v = 0',
|
||||
'many': 'v = 0 and n != 0..10 and n % 10 = 0'
|
||||
he: {
|
||||
one: 'i = 1 and v = 0',
|
||||
two: 'i = 2 and v = 0',
|
||||
many: 'v = 0 and n != 0..10 and n % 10 = 0'
|
||||
},
|
||||
'hi': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
hi: {
|
||||
one: 'i = 0 or n = 1'
|
||||
},
|
||||
'hr': {
|
||||
'one': 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
'few': 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
hr: {
|
||||
one: 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
few: 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
},
|
||||
'hy': {
|
||||
'one': 'i = 0,1'
|
||||
hy: {
|
||||
one: 'i = 0,1'
|
||||
},
|
||||
'is': {
|
||||
'one': 't = 0 and i % 10 = 1 and i % 100 != 11 or t != 0'
|
||||
is: {
|
||||
one: 't = 0 and i % 10 = 1 and i % 100 != 11 or t != 0'
|
||||
},
|
||||
'iu': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
iu: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'iw': {
|
||||
'one': 'i = 1 and v = 0',
|
||||
'two': 'i = 2 and v = 0',
|
||||
'many': 'v = 0 and n != 0..10 and n % 10 = 0'
|
||||
iw: {
|
||||
one: 'i = 1 and v = 0',
|
||||
two: 'i = 2 and v = 0',
|
||||
many: 'v = 0 and n != 0..10 and n % 10 = 0'
|
||||
},
|
||||
'kab': {
|
||||
'one': 'i = 0,1'
|
||||
kab: {
|
||||
one: 'i = 0,1'
|
||||
},
|
||||
'kn': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
kn: {
|
||||
one: 'i = 0 or n = 1'
|
||||
},
|
||||
'kw': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
kw: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'lag': {
|
||||
'zero': 'n = 0',
|
||||
'one': 'i = 0,1 and n != 0'
|
||||
lag: {
|
||||
zero: 'n = 0',
|
||||
one: 'i = 0,1 and n != 0'
|
||||
},
|
||||
'ln': {
|
||||
'one': 'n = 0..1'
|
||||
ln: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'lt': {
|
||||
'one': 'n % 10 = 1 and n % 100 != 11..19',
|
||||
'few': 'n % 10 = 2..9 and n % 100 != 11..19',
|
||||
'many': 'f != 0'
|
||||
lt: {
|
||||
one: 'n % 10 = 1 and n % 100 != 11..19',
|
||||
few: 'n % 10 = 2..9 and n % 100 != 11..19',
|
||||
many: 'f != 0'
|
||||
},
|
||||
'lv': {
|
||||
'zero': 'n % 10 = 0 or n % 100 = 11..19 or v = 2 and f % 100 = 11..19',
|
||||
'one': 'n % 10 = 1 and n % 100 != 11 or v = 2 and f % 10 = 1 and f % 100 != 11 or v != 2 and f % 10 = 1'
|
||||
lv: {
|
||||
zero: 'n % 10 = 0 or n % 100 = 11..19 or v = 2 and f % 100 = 11..19',
|
||||
one: 'n % 10 = 1 and n % 100 != 11 or v = 2 and f % 10 = 1 and f % 100 != 11 or v != 2 and f % 10 = 1'
|
||||
},
|
||||
'mg': {
|
||||
'one': 'n = 0..1'
|
||||
mg: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'mk': {
|
||||
'one': 'v = 0 and i % 10 = 1 or f % 10 = 1'
|
||||
mk: {
|
||||
one: 'v = 0 and i % 10 = 1 or f % 10 = 1'
|
||||
},
|
||||
'mo': {
|
||||
'one': 'i = 1 and v = 0',
|
||||
'few': 'v != 0 or n = 0 or n != 1 and n % 100 = 1..19'
|
||||
mo: {
|
||||
one: 'i = 1 and v = 0',
|
||||
few: 'v != 0 or n = 0 or n != 1 and n % 100 = 1..19'
|
||||
},
|
||||
'mr': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
mr: {
|
||||
one: 'i = 0 or n = 1'
|
||||
},
|
||||
'mt': {
|
||||
'one': 'n = 1',
|
||||
'few': 'n = 0 or n % 100 = 2..10',
|
||||
'many': 'n % 100 = 11..19'
|
||||
mt: {
|
||||
one: 'n = 1',
|
||||
few: 'n = 0 or n % 100 = 2..10',
|
||||
many: 'n % 100 = 11..19'
|
||||
},
|
||||
'naq': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
naq: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'nso': {
|
||||
'one': 'n = 0..1'
|
||||
nso: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'pa': {
|
||||
'one': 'n = 0..1'
|
||||
pa: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'pl': {
|
||||
'one': 'i = 1 and v = 0',
|
||||
'few': 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14',
|
||||
'many': 'v = 0 and i != 1 and i % 10 = 0..1 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 12..14'
|
||||
pl: {
|
||||
one: 'i = 1 and v = 0',
|
||||
few: 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14',
|
||||
many: 'v = 0 and i != 1 and i % 10 = 0..1 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 12..14'
|
||||
},
|
||||
'pt': {
|
||||
'one': 'i = 1 and v = 0 or i = 0 and t = 1'
|
||||
pt: {
|
||||
one: 'i = 1 and v = 0 or i = 0 and t = 1'
|
||||
},
|
||||
'pt_PT': {
|
||||
'one': 'n = 1 and v = 0'
|
||||
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
|
||||
pt_PT: {
|
||||
one: 'n = 1 and v = 0'
|
||||
},
|
||||
'ro': {
|
||||
'one': 'i = 1 and v = 0',
|
||||
'few': 'v != 0 or n = 0 or n != 1 and n % 100 = 1..19'
|
||||
// jscs:enable requireCamelCaseOrUpperCaseIdentifiers
|
||||
ro: {
|
||||
one: 'i = 1 and v = 0',
|
||||
few: 'v != 0 or n = 0 or n != 1 and n % 100 = 1..19'
|
||||
},
|
||||
'ru': {
|
||||
'one': 'v = 0 and i % 10 = 1 and i % 100 != 11',
|
||||
'many': 'v = 0 and i % 10 = 0 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 11..14'
|
||||
ru: {
|
||||
one: 'v = 0 and i % 10 = 1 and i % 100 != 11',
|
||||
many: 'v = 0 and i % 10 = 0 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 11..14'
|
||||
},
|
||||
'se': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
se: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'sh': {
|
||||
'one': 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
'few': 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
sh: {
|
||||
one: 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
few: 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
},
|
||||
'shi': {
|
||||
'one': 'i = 0 or n = 1',
|
||||
'few': 'n = 2..10'
|
||||
shi: {
|
||||
one: 'i = 0 or n = 1',
|
||||
few: 'n = 2..10'
|
||||
},
|
||||
'si': {
|
||||
'one': 'n = 0,1 or i = 0 and f = 1'
|
||||
si: {
|
||||
one: 'n = 0,1 or i = 0 and f = 1'
|
||||
},
|
||||
'sk': {
|
||||
'one': 'i = 1 and v = 0',
|
||||
'few': 'i = 2..4 and v = 0',
|
||||
'many': 'v != 0'
|
||||
sk: {
|
||||
one: 'i = 1 and v = 0',
|
||||
few: 'i = 2..4 and v = 0',
|
||||
many: 'v != 0'
|
||||
},
|
||||
'sl': {
|
||||
'one': 'v = 0 and i % 100 = 1',
|
||||
'two': 'v = 0 and i % 100 = 2',
|
||||
'few': 'v = 0 and i % 100 = 3..4 or v != 0'
|
||||
sl: {
|
||||
one: 'v = 0 and i % 100 = 1',
|
||||
two: 'v = 0 and i % 100 = 2',
|
||||
few: 'v = 0 and i % 100 = 3..4 or v != 0'
|
||||
},
|
||||
'sma': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
sma: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'smi': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
smi: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'smj': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
smj: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'smn': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
smn: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'sms': {
|
||||
'one': 'n = 1',
|
||||
'two': 'n = 2'
|
||||
sms: {
|
||||
one: 'n = 1',
|
||||
two: 'n = 2'
|
||||
},
|
||||
'sr': {
|
||||
'one': 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
'few': 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
sr: {
|
||||
one: 'v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11',
|
||||
few: 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14'
|
||||
},
|
||||
'ti': {
|
||||
'one': 'n = 0..1'
|
||||
ti: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'tl': {
|
||||
'one': 'i = 0..1 and v = 0'
|
||||
tl: {
|
||||
one: 'i = 0..1 and v = 0'
|
||||
},
|
||||
'tzm': {
|
||||
'one': 'n = 0..1 or n = 11..99'
|
||||
tzm: {
|
||||
one: 'n = 0..1 or n = 11..99'
|
||||
},
|
||||
'uk': {
|
||||
'one': 'v = 0 and i % 10 = 1 and i % 100 != 11',
|
||||
'few': 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14',
|
||||
'many': 'v = 0 and i % 10 = 0 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 11..14'
|
||||
uk: {
|
||||
one: 'v = 0 and i % 10 = 1 and i % 100 != 11',
|
||||
few: 'v = 0 and i % 10 = 2..4 and i % 100 != 12..14',
|
||||
many: 'v = 0 and i % 10 = 0 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 11..14'
|
||||
},
|
||||
'wa': {
|
||||
'one': 'n = 0..1'
|
||||
wa: {
|
||||
one: 'n = 0..1'
|
||||
},
|
||||
'zu': {
|
||||
'one': 'i = 0 or n = 1'
|
||||
zu: {
|
||||
one: 'i = 0 or n = 1'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Plural form transformations, needed for some languages.
|
||||
*
|
||||
@@ -274,7 +275,7 @@
|
||||
var pluralRules,
|
||||
pluralFormIndex,
|
||||
index,
|
||||
explicitPluralPattern = new RegExp('\\d+=', 'i'),
|
||||
explicitPluralPattern = new RegExp( '\\d+=', 'i' ),
|
||||
formCount,
|
||||
form;
|
||||
|
||||
@@ -344,13 +345,13 @@
|
||||
* @param {number} num Value to be converted
|
||||
* @param {boolean} integer Convert the return value to an integer
|
||||
*/
|
||||
'convertNumber': function ( num, integer ) {
|
||||
convertNumber: function ( num, integer ) {
|
||||
var tmp, item, i,
|
||||
transformTable, numberString, convertedNumber;
|
||||
|
||||
// Set the target Transform table:
|
||||
transformTable = this.digitTransformTable( $.i18n().locale );
|
||||
numberString = '' + num;
|
||||
numberString = String( num );
|
||||
convertedNumber = '';
|
||||
|
||||
if ( !transformTable ) {
|
||||
@@ -411,7 +412,7 @@
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
'gender': function ( gender, forms ) {
|
||||
gender: function ( gender, forms ) {
|
||||
if ( !forms || forms.length === 0 ) {
|
||||
return '';
|
||||
}
|
||||
@@ -453,8 +454,8 @@
|
||||
my: '၀၁၂၃၄၅၆၇၈၉',
|
||||
ta: '௦௧௨௩௪௫௬௭௮௯',
|
||||
te: '౦౧౨౩౪౫౬౭౮౯',
|
||||
th: '๐๑๒๓๔๕๖๗๘๙', //FIXME use iso 639 codes
|
||||
bo: '༠༡༢༣༤༥༦༧༨༩' //FIXME use iso 639 codes
|
||||
th: '๐๑๒๓๔๕๖๗๘๙', // FIXME use iso 639 codes
|
||||
bo: '༠༡༢༣༤༥༦༧༨༩' // FIXME use iso 639 codes
|
||||
};
|
||||
|
||||
if ( !tables[language] ) {
|
||||
@@ -466,6 +467,6 @@
|
||||
};
|
||||
|
||||
$.extend( $.i18n.languages, {
|
||||
'default': language
|
||||
default: language
|
||||
} );
|
||||
}( jQuery ) );
|
||||
|
||||
Reference in New Issue
Block a user