Skip to content

Commit 8fcc620

Browse files
unhokevin-brown
authored andcommitted
Update Galician translation
1 parent 8e6422c commit 8fcc620

1 file changed

Lines changed: 10 additions & 22 deletions

File tree

src/js/select2/i18n/gl.js

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,33 @@
11
define(function () {
22
// Galician
33
return {
4+
errorLoading: function () {
5+
return 'Non foi posíbel cargar os resultados.';
6+
},
47
inputTooLong: function (args) {
58
var overChars = args.input.length - args.maximum;
69

7-
var message = 'Elimine ';
8-
910
if (overChars === 1) {
10-
message += 'un carácter';
11-
} else {
12-
message += overChars + ' caracteres';
11+
return 'Elimine un carácter';
1312
}
14-
15-
return message;
13+
return 'Elimine ' + overChars + ' caracteres';
1614
},
1715
inputTooShort: function (args) {
1816
var remainingChars = args.minimum - args.input.length;
1917

20-
var message = 'Engada ';
21-
2218
if (remainingChars === 1) {
23-
message += 'un carácter';
24-
} else {
25-
message += remainingChars + ' caracteres';
19+
return 'Engada un carácter';
2620
}
27-
28-
return message;
21+
return 'Engada ' + remainingChars + ' caracteres';
2922
},
3023
loadingMore: function () {
3124
return 'Cargando máis resultados…';
3225
},
3326
maximumSelected: function (args) {
34-
var message = 'Só pode ';
35-
3627
if (args.maximum === 1) {
37-
message += 'un elemento';
38-
} else {
39-
message += args.maximum + ' elementos';
28+
return 'Só pode seleccionar un elemento';
4029
}
41-
42-
return message;
30+
return 'Só pode seleccionar ' + args.maximum + ' elementos';
4331
},
4432
noResults: function () {
4533
return 'Non se atoparon resultados';
@@ -48,4 +36,4 @@ define(function () {
4836
return 'Buscando…';
4937
}
5038
};
51-
});
39+
});

0 commit comments

Comments
 (0)