From 244ba1bb43213b32661ccd40b29b5825634364fd Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 13 Feb 2013 00:53:25 -0800 Subject: [PATCH] add [it] locale transations --- select2_locale_it.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 select2_locale_it.js diff --git a/select2_locale_it.js b/select2_locale_it.js new file mode 100644 index 00000000..98369dda --- /dev/null +++ b/select2_locale_it.js @@ -0,0 +1,15 @@ +/** + * Select2 Italian translation + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "Nessuna corrispondenza trovata"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; }, + formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); }, + formatLoadMore: function (pageNumber) { return "Caricamento in corso..."; }, + formatSearching: function () { return "Ricerca..."; } + }); +})(jQuery); \ No newline at end of file