1
0
mirror of synced 2024-11-28 23:56:03 +03:00
select2/select2_locale_pt-BR.js
Marcelo Diniz 759b01926b Update Brazilian Portuguese translation
Add row `formatAjaxError` and update when `formatInputTooShort` value equal to 1
2014-09-18 13:27:53 -03:00

19 lines
969 B
JavaScript

/**
* Select2 Brazilian Portuguese translation
*/
(function ($) {
"use strict";
$.fn.select2.locales['pt-BR'] = {
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
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…"; },
formatSearching: function () { return "Buscando…"; }
};
$.extend($.fn.select2.defaults, $.fn.select2.locales['pt-BR']);
})(jQuery);