Skip to content

Commit

Permalink
Merge pull request #309 from kirelagin/patch-1
Browse files Browse the repository at this point in the history
Fix Russian locale
  • Loading branch information
rmm5t authored Oct 16, 2016
2 parents f92d068 + 8732436 commit 084819d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions locales/jquery.timeago.ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// f - 1, 21, 31, ...
// s - 2-4, 22-24, 32-34 ...
// t - 5-20, 25-30, ...
n = n % 100;
var n10 = n % 10;
if ( (n10 === 1) && ( (n === 1) || (n > 20) ) ) {
return f;
Expand All @@ -21,7 +22,7 @@
suffixFromNow: null,
seconds: "меньше минуты",
minute: "минуту",
minutes: function(value) { return numpf(value, "%d минута", "%d минуты", "%d минут"); },
minutes: function(value) { return numpf(value, "%d минуту", "%d минуты", "%d минут"); },
hour: "час",
hours: function(value) { return numpf(value, "%d час", "%d часа", "%d часов"); },
day: "день",
Expand All @@ -31,4 +32,4 @@
year: "год",
years: function(value) { return numpf(value, "%d год", "%d года", "%d лет"); }
};
})();
})();

0 comments on commit 084819d

Please sign in to comment.