From 66ad7efe4da68b4538deb620d2ae344e988bc19b Mon Sep 17 00:00:00 2001 From: David Planella Date: Sat, 6 Apr 2013 11:48:35 +0200 Subject: [PATCH] Added Catalan translation --- select2_locale_ca.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 select2_locale_ca.js diff --git a/select2_locale_ca.js b/select2_locale_ca.js new file mode 100644 index 00000000..bdcdaa79 --- /dev/null +++ b/select2_locale_ca.js @@ -0,0 +1,17 @@ +/** + * Select2 Catalan translation. + * + * Author: David Planella + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "No s'ha trobat cap coincidència"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduïu " + n + " caràcter" + (n == 1 ? "" : "s") + " més"; }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Introduïu " + n + " caràcter" + (n == 1? "" : "s") + "menys"; }, + formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); }, + formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats..."; }, + formatSearching: function () { return "S'està cercant..."; } + }); +})(jQuery);