2013-05-30 01:53:40 -04:00
|
|
|
MessageFormat.locale.sr = function (n) {
|
2017-12-22 06:20:19 -05:00
|
|
|
var r10 = n % 10, r100 = n % 100;
|
|
|
|
|
|
|
|
if (r10 == 1 && r100 != 11)
|
2013-05-30 01:53:40 -04:00
|
|
|
return 'one';
|
2017-12-22 06:20:19 -05:00
|
|
|
|
|
|
|
if (r10 >= 2 && r10 <= 4 && (r100 < 12 || r100 > 14) && n == Math.floor(n))
|
2013-05-30 01:53:40 -04:00
|
|
|
return 'few';
|
2017-12-22 06:20:19 -05:00
|
|
|
|
2013-05-30 01:53:40 -04:00
|
|
|
return 'other';
|
2017-12-22 06:20:19 -05:00
|
|
|
};
|