updated SRI hashes, added missing formula for slowene plurals and unit test for it, updated credits and changelog

This commit is contained in:
El RIDO 2017-01-01 14:35:39 +01:00
parent 910c3b3f9d
commit 4a036aea80
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
12 changed files with 32 additions and 10 deletions

View file

@ -414,10 +414,12 @@ $(function() {
case 'zh':
return (n > 1 ? 1 : 0);
case 'pl':
return (n === 1 ? 0 : (n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2));
return (n === 1 ? 0 : (n % 10 >= 2 && n %10 <=4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2));
case 'ru':
return (n % 10 === 1 && n % 100 !== 11 ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2));
// en, de
case 'sl':
return (n % 100 === 1 ? 1 : (n % 100 === 2 ? 2 : (n % 100 === 3 || n % 100 === 4 ? 3 : 0)));
// de, en, es, it
default:
return (n !== 1 ? 1 : 0);
}