Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added spanish translation. fixes #883

  • Loading branch information...
commit 4ca141f4bbdfdad9c8854acbc876b584eed7f326 1 parent 6278e7c
@ivaynberg ivaynberg authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 select2_locale_es.js
View
15 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);
Please sign in to comment.
Something went wrong with that request. Please try again.