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
ndr_ui-4.1.1 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-3.3.1 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-3.3.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-3.2.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-3.1.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-3.0.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-2.3.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-2.2.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-2.1.1 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-2.1.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-2.0.2 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-1.12.2 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-1.12.1 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-1.12.0 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
ndr_ui-1.8.1 vendor/assets/jquery-timeago-1.5.3/locales/jquery.timeago.ru.js
sidekiq-4.2.1 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-4.2.0 web/assets/javascripts/locales/jquery.timeago.ru.js
locomotivecms-3.2.0.rc1 vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ru.js
sidekiq-4.1.4 web/assets/javascripts/locales/jquery.timeago.ru.js
sidekiq-4.1.3 web/assets/javascripts/locales/jquery.timeago.ru.js