From 759b01926bf6c9c3f06e24897ec9e9ccdfbbb2ff Mon Sep 17 00:00:00 2001 From: Marcelo Diniz Date: Thu, 18 Sep 2014 13:27:53 -0300 Subject: [PATCH] Update Brazilian Portuguese translation Add row `formatAjaxError` and update when `formatInputTooShort` value equal to 1 --- select2_locale_pt-BR.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/select2_locale_pt-BR.js b/select2_locale_pt-BR.js index e4088f0c..51b037de 100644 --- a/select2_locale_pt-BR.js +++ b/select2_locale_pt-BR.js @@ -6,7 +6,8 @@ $.fn.select2.locales['pt-BR'] = { formatNoMatches: function () { return "Nenhum resultado encontrado"; }, - formatInputTooShort: function (input, min) { var n = min - input.length; return "Digite mais " + n + " caracter" + (n == 1? "" : "es"); }, + formatAjaxError: function () { return "Erro na busca"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Digite " + (min == 1 ? "" : "mais") + " " + 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…"; },