Skip to content

Commit 4fd71df

Browse files
committed
Merge pull request select2#1224 from unho/galician-translation
Galician translation
2 parents 839d4db + a705282 commit 4fd71df

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

select2_locale_gl.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Select2 Galician translation
3+
*
4+
* Author: Leandro Regueiro <leandro.regueiro@gmail.com>
5+
*/
6+
(function ($) {
7+
"use strict";
8+
9+
$.extend($.fn.select2.defaults, {
10+
formatNoMatches: function () {
11+
return "Non se atoparon resultados";
12+
},
13+
formatInputTooShort: function (input, min) {
14+
var n = min - input.length;
15+
if (n === 1) {
16+
return "Engada un carácter";
17+
} else {
18+
return "Engada " + n + " caracteres";
19+
}
20+
},
21+
formatInputTooLong: function (input, max) {
22+
var n = input.length - max;
23+
if (n === 1) {
24+
return "Elimine un carácter";
25+
} else {
26+
return "Elimine " + n + " caracteres";
27+
}
28+
},
29+
formatSelectionTooBig: function (limit) {
30+
if (limit === 1 ) {
31+
return "Só pode seleccionar un elemento";
32+
} else {
33+
return "Só pode seleccionar " + limit + " elementos";
34+
}
35+
},
36+
formatLoadMore: function (pageNumber) {
37+
return "Cargando máis resultados...";
38+
},
39+
formatSearching: function () {
40+
return "Buscando...";
41+
}
42+
});
43+
})(jQuery);

0 commit comments

Comments
 (0)