From 4ca141f4bbdfdad9c8854acbc876b584eed7f326 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Tue, 19 Feb 2013 09:17:15 -0800 Subject: [PATCH] added spanish translation. fixes #883 --- select2_locale_es.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 select2_locale_es.js diff --git a/select2_locale_es.js b/select2_locale_es.js new file mode 100644 index 00000000..1b0a0214 --- /dev/null +++ b/select2_locale_es.js @@ -0,0 +1,15 @@ +/** + * Select2 Spanish translation + */ +(function ($) { + "use strict"; + + $.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"); }, + formatLoadMore: function (pageNumber) { return "Cargando más resultados..."; }, + formatSearching: function () { return "Buscando..."; } + }); +})(jQuery); \ No newline at end of file