Skip to content

Commit 5ea402a

Browse files
committed
Merge pull request select2#921 from rfs/master
Add Brazilian Portuguese translation
2 parents 1113b9d + 877e701 commit 5ea402a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

select2_locale_pt-BR.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Select2 Brazilian Portuguese translation
3+
*/
4+
(function ($) {
5+
"use strict";
6+
7+
$.extend($.fn.select2.defaults, {
8+
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
9+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caracter" + (n == 1? "" : "es"); },
10+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1? "" : "es"); },
11+
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
12+
formatLoadMore: function (pageNumber) { return "Carregando mais resultados..."; },
13+
formatSearching: function () { return "Buscando..."; }
14+
});
15+
})(jQuery);

0 commit comments

Comments
 (0)