Sha256: c93879d8e618edc7dcbc3d16db3413d2f20bca3bc326e2e884f82f8ba03765d1

Contents?: true

Size: 1.81 KB

Versions: 11

Compression:

Stored size: 1.81 KB

Contents

/**
 * Select2 Slovak translation.
 *
 * Author: David Vallner <david@vallner.net>
 */
(function ($) {
    "use strict";
    // use text for the numbers 2 through 4
    var smallNumbers = {
        2: function(masc) { return (masc ? "dva" : "dve"); },
        3: function() { return "tri"; },
        4: function() { return "štyri"; }
    }
    $.extend($.fn.select2.defaults, {
        formatNoMatches: function () { return "Nenašli sa žiadne položky"; },
        formatInputTooShort: function (input, min) {
            var n = min - input.length;
            if (n == 1) {
                return "Prosím zadajte ešte jeden znak";
            } else if (n <= 4) {
                return "Prosím zadajte ešte ďalšie "+smallNumbers[n](true)+" znaky";
            } else {
                return "Prosím zadajte ešte ďalších "+n+" znakov";
            }
        },
        formatInputTooLong: function (input, max) {
            var n = input.length - max;
            if (n == 1) {
                return "Prosím zadajte o jeden znak menej";
            } else if (n <= 4) {
                return "Prosím zadajte o "+smallNumbers[n](true)+" znaky menej";
            } else {
                return "Prosím zadajte o "+n+" znakov menej";
            }
        },
        formatSelectionTooBig: function (limit) {
            if (limit == 1) {
                return "Môžete zvoliť len jednu položku";
            } else if (limit <= 4) {
                return "Môžete zvoliť najviac "+smallNumbers[limit](false)+" položky";
            } else {
                return "Môžete zvoliť najviac "+limit+" položiek";
            }
        },
        formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky..."; },
        formatSearching: function () { return "Vyhľadávanie..."; }
    });
})(jQuery);

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
select2-rails-3.5.4 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.5.3 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.5.2 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.5.1 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.5.0 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.4.9 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.4.8 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.4.7 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.4.6 app/assets/javascripts/select2_locale_sk.js
select2-rails-3.4.5 vendor/assets/javascripts/select2_locale_sk.js
ns-styleguide-1.0.0 templates/project/libs/select2-3.4.0/select2_locale_sk.js