mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-22 16:12:13 +01:00
1 line
770 B
JavaScript
1 line
770 B
JavaScript
(function($){"use strict";$.fn.select2.locales["pl"]={formatNoMatches:function(){return"Brak wyników"},formatInputTooShort:function(input,min){return"Wpisz co najmniej"+character(min-input.length,"znak","i")},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")},formatLoadMore:function(pageNumber){return"Ładowanie wyników…"},formatSearching:function(){return"Szukanie…"}};$.extend($.fn.select2.defaults,$.fn.select2.locales["pl"]);function character(n,word,pluralSuffix){var suffix="";if(n>1&&n<5){suffix=pluralSuffix}else if(n==0||n>=5){suffix="ów"}return" "+n+" "+word+suffix}})(jQuery); |