Sha256: 53c6b1441220612a3d7357ad9842bd338a8fb91e65166c178e512809a29b3335

Contents?: true

Size: 1.26 KB

Versions: 72

Compression:

Stored size: 1.26 KB

Contents

define(function () {
  // Polish
  var charsWords = ['znak', 'znaki', 'znaków'];
  var itemsWords = ['element', 'elementy', 'elementów'];

  var pluralWord = function pluralWord(numberOfChars, words) {
    if (numberOfChars === 1) {
        return words[0];
    } else if (numberOfChars > 1 && numberOfChars <= 4) {
      return words[1];
    } else if (numberOfChars >= 5) {
      return words[2];
    }
  };
  
  return {
    errorLoading: function () {
      return 'Nie można załadować wyników.';
    },
    inputTooLong: function (args) {
      var overChars = args.input.length - args.maximum;

      return 'Usuń ' + overChars + ' ' + pluralWord(overChars, charsWords);
    },
    inputTooShort: function (args) {
      var remainingChars = args.minimum - args.input.length;
      
      return 'Podaj przynajmniej ' + remainingChars + ' ' +
        pluralWord(remainingChars, charsWords);
    },
    loadingMore: function () {
      return 'Trwa ładowanie…';
    },
    maximumSelected: function (args) {
      return 'Możesz zaznaczyć tylko ' + args.maximum + ' ' +
        pluralWord(args.maximum, itemsWords);
    },
    noResults: function () {
      return 'Brak wyników';
    },
    searching: function () {
      return 'Trwa wyszukiwanie…';
    }
  };
});

Version data entries

72 entries across 72 versions & 6 rubygems

Version Path
card-mod-bootstrap-0.14.2 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.14.1 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.14.0 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.13.4 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.13.3 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.13.2 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.13.1 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.13.0 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.7 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.12.0 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.6 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.5 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.4 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.3 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.2 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.1 vendor/select2/src/js/select2/i18n/pl.js
card-mod-bootstrap-0.11.0 vendor/select2/src/js/select2/i18n/pl.js
card-1.100.0 mod/bootstrap/vendor/select2/src/js/select2/i18n/pl.js
card-1.99.6 mod/bootstrap/vendor/select2/src/js/select2/i18n/pl.js
card-1.99.5 mod/bootstrap/vendor/select2/src/js/select2/i18n/pl.js