From 26987ddcfd1677d30b9e61733eb02a2460cc67ab Mon Sep 17 00:00:00 2001 From: Julio Marquez Date: Sun, 4 Aug 2013 19:00:32 -0430 Subject: [PATCH] Improve ES locale Fixed missing diacritical marks & changed word "adicione" -> "introduzca" --- select2_locale_es.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/select2_locale_es.js b/select2_locale_es.js index 1b0a0214..241584ca 100644 --- a/select2_locale_es.js +++ b/select2_locale_es.js @@ -6,10 +6,10 @@ $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "No se encontraron resultados"; }, - formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor adicione " + n + " caracter" + (n == 1? "" : "es"); }, - formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor elimine " + n + " caracter" + (n == 1? "" : "es"); }, - formatSelectionTooBig: function (limit) { return "Solo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor, introduzca " + n + " car" + (n == 1? "á" : "a") + "cter" + (n == 1? "" : "es"); }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor, elimine " + n + " car" + (n == 1? "á" : "a") + "cter" + (n == 1? "" : "es"); }, + formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, formatLoadMore: function (pageNumber) { return "Cargando más resultados..."; }, formatSearching: function () { return "Buscando..."; } }); -})(jQuery); \ No newline at end of file +})(jQuery);