1
|
/**
|
2
|
* Select2 Italian translation
|
3
|
*/
|
4
|
(function ($) {
|
5
|
"use strict";
|
6
|
|
7
|
$.fn.select2.locales['it'] = {
|
8
|
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
|
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); },
|
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; },
|
11
|
formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); },
|
12
|
formatLoadMore: function (pageNumber) { return "Caricamento in corso…"; },
|
13
|
formatSearching: function () { return "Ricerca…"; }
|
14
|
};
|
15
|
|
16
|
$.extend($.fn.select2.defaults, $.fn.select2.locales['it']);
|
17
|
})(jQuery);
|