Sha256: 93b7591106eefe27c85ee273a532524a5e8140c3e14bec7bf408a54af62d1fe9

Contents?: true

Size: 1.15 KB

Versions: 88

Compression:

Stored size: 1.15 KB

Contents

// Russian
(function() {
  function numpf(n, f, s, t) {
    // f - 1, 21, 31, ...
    // s - 2-4, 22-24, 32-34 ...
    // t - 5-20, 25-30, ...
    var n10 = n % 10;
    if ( (n10 == 1) && ( (n == 1) || (n > 20) ) ) {
      return f;
    } else if ( (n10 > 1) && (n10 < 5) && ( (n > 20) || (n < 10) ) ) {
      return s;
    } else {
      return t;
    }
  }

  jQuery.timeago.settings.strings = {
    prefixAgo: null,
    prefixFromNow: "через",
    suffixAgo: "назад",
    suffixFromNow: null,
    seconds: "меньше минуты",
    minute: "минуту",
    minutes: function(value) { return numpf(value, "%d минута", "%d минуты", "%d минут"); },
    hour: "час",
    hours: function(value) { return numpf(value, "%d час", "%d часа", "%d часов"); },
    day: "день",
    days: function(value) { return numpf(value, "%d день", "%d дня", "%d дней"); },
    month: "месяц",
    months: function(value) { return numpf(value, "%d месяц", "%d месяца", "%d месяцев"); },
    year: "год",
    years: function(value) { return numpf(value, "%d год", "%d года", "%d лет"); }
  };
})();

Version data entries

88 entries across 88 versions & 7 rubygems

Version Path
sidekiq-3.4.2 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.4.1 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.4.0 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.3.4 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.3.3 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.3.2 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.3.1 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.3.0 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.2.6 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-2.17.8 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.2.5 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.2.4 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.2.3 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.2.2 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.2.1 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.2.0 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.1.4 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.1.3 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.1.2 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-3.1.1 web/assets/javascripts/locales/jquery.timeago.ru.js