2013-03-27 18:07:52 +04:00
|
|
|
/**
|
|
|
|
* Select2 Polish translation.
|
|
|
|
*
|
|
|
|
* Author: Jan Kondratowicz <jan@kondratowicz.pl>
|
|
|
|
*/
|
|
|
|
(function ($) {
|
|
|
|
"use strict";
|
|
|
|
|
2013-12-19 14:56:45 +04:00
|
|
|
var pl_suffix = function(n, pluralSuffix) {
|
2013-03-27 18:07:52 +04:00
|
|
|
if(n == 1) return "";
|
2013-12-19 14:56:45 +04:00
|
|
|
if((n%100 > 1 && n%100 < 5) || (n%100 > 20 && n%10 > 1 && n%10 < 5)) return pluralSuffix;
|
2013-03-27 18:07:52 +04:00
|
|
|
return "ów";
|
|
|
|
};
|
|
|
|
|
|
|
|
$.extend($.fn.select2.defaults, {
|
|
|
|
formatNoMatches: function () {
|
|
|
|
return "Brak wyników.";
|
|
|
|
},
|
|
|
|
formatInputTooShort: function (input, min) {
|
|
|
|
var n = min - input.length;
|
2013-12-19 14:56:45 +04:00
|
|
|
return "Wpisz jeszcze " + n + " znak" + pl_suffix(n,'i') + ".";
|
2013-03-27 18:07:52 +04:00
|
|
|
},
|
|
|
|
formatInputTooLong: function (input, max) {
|
|
|
|
var n = input.length - max;
|
2013-12-19 14:56:45 +04:00
|
|
|
return "Wpisana fraza jest za długa o " + n + " znak" + pl_suffix(n,'i') + ".";
|
2013-03-27 18:07:52 +04:00
|
|
|
},
|
|
|
|
formatSelectionTooBig: function (limit) {
|
2013-12-19 14:56:45 +04:00
|
|
|
return "Możesz zaznaczyć najwyżej " + limit + " element" + pl_suffix(limit,'y') + ".";
|
2013-03-27 18:07:52 +04:00
|
|
|
},
|
|
|
|
formatLoadMore: function (pageNumber) {
|
|
|
|
return "Ładowanie wyników...";
|
|
|
|
},
|
|
|
|
formatSearching: function () {
|
|
|
|
return "Szukanie...";
|
|
|
|
}
|
|
|
|
});
|
2013-12-19 14:56:45 +04:00
|
|
|
})(jQuery);
|