All Downloads are FREE. Search and download functionalities are using the official Maven repository.

select2-3.5.0.select2_locale_pl.js Maven / Gradle / Ivy

There is a newer version: 0.10.3
Show newest version
/**
 * Select2 Polish translation.
 * 
 * @author  Jan Kondratowicz 
 * @author  Uriy Efremochkin 
 * @author  Michał Połtyn 
 */
(function ($) {
    "use strict";

    $.extend($.fn.select2.defaults, {
        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…"; }
    });

    function character (n, word, pluralSuffix) {
        return " " + n + " " + word + (n == 1 ? "" : n%10 < 5 && n%10 > 1 && (n%100 < 5 || n%100 > 20) ? pluralSuffix : "ów");
    }
})(jQuery);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy