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-1.93.1 mod/bootstrap/vendor/select2/src/js/select2/i18n/pl.js
card-1.93.0 mod/bootstrap/vendor/select2/src/js/select2/i18n/pl.js
trestle-0.8.0 vendor/assets/bower_components/trestle/select2/src/js/select2/i18n/pl.js
locomotivecms-3.2.0.rc1 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.1.1 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.1.0 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.1.0.rc3 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.1.0.rc2 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.1.0.rc1 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.0.1 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.0.0 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js
locomotivecms-3.0.0.rc7 vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js