Sha256: aab4f6d8e7734867330587b68c06585314f0e7c6a6c83a7437c9d794e23ba8e1

Contents?: true

Size: 1.49 KB

Versions: 73

Compression:

Stored size: 1.49 KB

Contents

define(function () {
  // Russian
  function ending (count, one, couple, more) {
    if (count % 10 < 5 && count % 10 > 0 &&
        count % 100 < 5 || count % 100 > 20) {
      if (count % 10 > 1) {
        return couple;
      }
    } else {
      return more;
    }

    return one;
  }

  return {
    errorLoading: function () {
      return 'Невозможно загрузить результаты';
    },
    inputTooLong: function (args) {
      var overChars = args.input.length - args.maximum;

      var message = 'Пожалуйста, введите на ' + overChars + ' символ';

      message += ending(overChars, '', 'a', 'ов');

      message += ' меньше';

      return message;
    },
    inputTooShort: function (args) {
      var remainingChars = args.minimum - args.input.length;

      var message = 'Пожалуйста, введите еще хотя бы ' + remainingChars +
        ' символ';

      message += ending(remainingChars, '', 'a', 'ов');

      return message;
    },
    loadingMore: function () {
      return 'Загрузка данных…';
    },
    maximumSelected: function (args) {
      var message = 'Вы можете выбрать не более ' + args.maximum + ' элемент';

      message += ending(args.maximum, '', 'a', 'ов');

      return message;
    },
    noResults: function () {
      return 'Совпадений не найдено';
    },
    searching: function () {
      return 'Поиск…';
    }
  };
});

Version data entries

73 entries across 73 versions & 7 rubygems

Version Path
radius-rails-3.1.4 app/assets/components/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.14.2 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.14.1 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.14.0 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.13.4 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.13.3 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.13.2 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.13.1 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.13.0 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.7 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.12.0 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.6 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.5 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.4 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.3 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.2 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.1 vendor/select2/src/js/select2/i18n/ru.js
card-mod-bootstrap-0.11.0 vendor/select2/src/js/select2/i18n/ru.js
card-1.100.0 mod/bootstrap/vendor/select2/src/js/select2/i18n/ru.js
card-1.99.6 mod/bootstrap/vendor/select2/src/js/select2/i18n/ru.js