Skip to content

Commit 862f4b5

Browse files
committed
Add Brazilian Portuguese translation.
1 parent 4c563a3 commit 862f4b5

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

src/js/select2/i18n/pt-BR.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
define(function () {
2+
// Brazilian Portuguese
3+
return {
4+
errorLoading: function () {
5+
return 'Os resultados não puderam ser carregados.';
6+
},
7+
inputTooLong: function (args) {
8+
var overChars = args.input.length - args.maximum;
9+
10+
var message = 'Apague ' + overChars + ' caracter';
11+
12+
if (overChars != 1) {
13+
message += 'es';
14+
}
15+
16+
return message;
17+
},
18+
inputTooShort: function (args) {
19+
var remainingChars = args.minimum - args.input.length;
20+
21+
var message = 'Digite ' + remainingChars + ' ou mais caracteres';
22+
23+
return message;
24+
},
25+
loadingMore: function () {
26+
return 'Carregando mais resultados…';
27+
},
28+
maximumSelected: function (args) {
29+
var message = 'Você só pode selecionar ' + args.maximum + ' ite';
30+
31+
if (args.maximum == 1) {
32+
message += 'm';
33+
} else {
34+
message += 'ns';
35+
}
36+
37+
return message;
38+
},
39+
noResults: function () {
40+
return 'Nenhum resultado encontrado';
41+
},
42+
searching: function () {
43+
return 'Buscando…';
44+
}
45+
};
46+
});

0 commit comments

Comments
 (0)