GUAC-1187 Prepared Konstantin Kozhin's Russian translation for merge.

This commit is contained in:
James Muehlner
2015-05-18 19:14:38 -07:00
parent 8d33092c35
commit 2d8b092681
3 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
MessageFormat.locale.ru = function (n) {
if ((n % 10) == 1 && (n % 100) != 11) {
return 'one';
}
if ((n % 10) >= 2 && (n % 10) <= 4 &&
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
return 'few';
}
if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) ||
((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) {
return 'many';
}
return 'other';
};