1
|
/**
|
2
|
* Select2 Galician translation
|
3
|
*
|
4
|
* Author: Leandro Regueiro <leandro.regueiro@gmail.com>
|
5
|
*/
|
6
|
(function ($) {
|
7
|
"use strict";
|
8
|
|
9
|
$.fn.select2.locales['gl'] = {
|
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
|
|
44
|
$.extend($.fn.select2.defaults, $.fn.select2.locales['gl']);
|
45
|
})(jQuery);
|