2013-03-27 18:07:52 +04:00
|
|
|
/**
|
|
|
|
* Select2 Polish translation.
|
|
|
|
*
|
2014-01-08 12:41:47 +04:00
|
|
|
* @author Jan Kondratowicz <jan@kondratowicz.pl>
|
|
|
|
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
2014-05-24 01:36:51 +04:00
|
|
|
* @author Michał Połtyn <mike@poltyn.com>
|
2013-03-27 18:07:52 +04:00
|
|
|
*/
|
|
|
|
(function ($) {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
$.extend($.fn.select2.defaults, {
|
2014-01-08 12:41:47 +04:00
|
|
|
formatNoMatches: function () { return "Brak wyników"; },
|
2014-05-24 01:36:51 +04:00
|
|
|
formatInputTooShort: function (input, min) { return "Wpisz co najmniej" + character(min - input.length, "znak", "i"); },
|
2014-01-08 12:41:47 +04:00
|
|
|
formatInputTooLong: function (input, max) { return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i"); },
|
|
|
|
formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); },
|
2014-01-08 13:35:47 +04:00
|
|
|
formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; },
|
|
|
|
formatSearching: function () { return "Szukanie…"; }
|
2013-03-27 18:07:52 +04:00
|
|
|
});
|
2014-01-08 12:41:47 +04:00
|
|
|
|
|
|
|
function character (n, word, pluralSuffix) {
|
|
|
|
return " " + n + " " + word + (n == 1 ? "" : n%10 < 5 && n%10 > 1 && (n%100 < 5 || n%100 > 20) ? pluralSuffix : "ów");
|
|
|
|
}
|
2013-12-19 14:56:45 +04:00
|
|
|
})(jQuery);
|