From 877e701f311286c4c50ed3f9ac7fd7add5e91acb Mon Sep 17 00:00:00 2001 From: Reginaldo Francisco Date: Fri, 22 Feb 2013 02:37:41 -0300 Subject: [PATCH] Add Brazilian Portuguese translation --- select2_locale_pt-BR.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 select2_locale_pt-BR.js diff --git a/select2_locale_pt-BR.js b/select2_locale_pt-BR.js new file mode 100644 index 00000000..701fb7f8 --- /dev/null +++ b/select2_locale_pt-BR.js @@ -0,0 +1,15 @@ +/** + * Select2 Brazilian Portuguese translation + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "Nenhum resultado encontrado"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caracter" + (n == 1? "" : "es"); }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1? "" : "es"); }, + formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, + formatLoadMore: function (pageNumber) { return "Carregando mais resultados..."; }, + formatSearching: function () { return "Buscando..."; } + }); +})(jQuery);