Skip to content

Commit 86c23c0

Browse files
Fláviokevin-brown
authored andcommitted
Create pt.js
European Portuguese Translation
1 parent 8572299 commit 86c23c0

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

dist/js/i18n/pt.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/select2/i18n/pt.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
define(function () {
2+
// European 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 = 'Por favor apague ' + overChars + ' ';
11+
12+
message += overChars != 1 ? 'caracteres' : 'carácter';
13+
14+
return message;
15+
},
16+
inputTooShort: function (args) {
17+
var remainingChars = args.minimum - args.input.length;
18+
19+
var message = 'Introduza ' + remainingChars + ' ou mais caracteres';
20+
21+
return message;
22+
},
23+
loadingMore: function () {
24+
return 'A carregar mais resultados…';
25+
},
26+
maximumSelected: function (args) {
27+
var message = 'Apenas pode seleccionar ' + args.maximum + ' ';
28+
29+
message += args.maximum != 1 ? 'itens' : 'item';
30+
31+
return message;
32+
},
33+
noResults: function () {
34+
return 'Sem resultados';
35+
},
36+
searching: function () {
37+
return 'A procurar…';
38+
}
39+
};
40+
});

0 commit comments

Comments
 (0)