Sha256: 7761db1cee8fd10669da973cefb7539ff6271f9d9d2f214dd0260213af2669c3

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 KB

Contents

(function (factory) {
  if (typeof define === 'function' && define.amd) {
    define(['jquery'], factory);
  } else if (typeof module === 'object' && typeof module.exports === 'object') {
    factory(require('jquery'));
  } else {
    factory(jQuery);
  }
}(function (jQuery) {
  // Serbian
  var numpf = function (n, f, s, t) {
      var n10;
      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["rs"] = {
      prefixAgo: "pre",
      prefixFromNow: "za",
      suffixAgo: null,
      suffixFromNow: null,
      second: "sekund",
      seconds: function (value) {
          return numpf(value, "%d sekund", "%d sekunde", "%d sekundi");
      },
      minute: "oko minut",
      minutes: function (value) {
          return numpf(value, "%d minut", "%d minuta", "%d minuta");
      },
      hour: "oko jedan sat",
      hours: function (value) {
          return numpf(value, "%d sat", "%d sata", "%d sati");
      },
      day: "jedan dan",
      days: function (value) {
          return numpf(value, "%d dan", "%d dana", "%d dana");
      },
      month: "mesec dana",
      months: function (value) {
          return numpf(value, "%d mesec", "%d meseca", "%d meseci");
      },
      year: "godinu dana",
      years: function (value) {
          return numpf(value, "%d godinu", "%d godine", "%d godina");
      },
      wordSeparator: " "
  };
}));

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails-timeago-2.20.0 vendor/assets/javascripts/locales/jquery.timeago.rs.js
rails-timeago-2.19.1 vendor/assets/javascripts/locales/jquery.timeago.rs.js
rails-timeago-2.19.0 vendor/assets/javascripts/locales/jquery.timeago.rs.js
rails-timeago-2.18.0 vendor/assets/javascripts/locales/jquery.timeago.rs.js
rails-timeago-2.17.1 vendor/assets/javascripts/locales/jquery.timeago.rs.js