2013-04-27 15:38:00 +04:00
|
|
|
/**
|
|
|
|
* Select2 Galician translation
|
|
|
|
*
|
|
|
|
* Author: Leandro Regueiro <leandro.regueiro@gmail.com>
|
|
|
|
*/
|
|
|
|
(function ($) {
|
|
|
|
"use strict";
|
|
|
|
|
2014-04-15 11:20:22 +04:00
|
|
|
$.fn.select2.locales['gl'] = {
|
2013-04-27 15:38:00 +04:00
|
|
|
formatNoMatches: function () {
|
|
|
|
return "Non se atoparon resultados";
|
|
|
|
},
|
|
|
|
formatInputTooShort: function (input, min) {
|
|
|
|
var n = min - input.length;
|
|
|
|
if (n === 1) {
|
|
|
|
return "Engada un carácter";
|
|
|
|
} else {
|
|
|
|
return "Engada " + n + " caracteres";
|
|
|
|
}
|
|
|
|
},
|
|
|
|
formatInputTooLong: function (input, max) {
|
|
|
|
var n = input.length - max;
|
|
|
|
if (n === 1) {
|
|
|
|
return "Elimine un carácter";
|
|
|
|
} else {
|
|
|
|
return "Elimine " + n + " caracteres";
|
|
|
|
}
|
|
|
|
},
|
|
|
|
formatSelectionTooBig: function (limit) {
|
|
|
|
if (limit === 1 ) {
|
|
|
|
return "Só pode seleccionar un elemento";
|
|
|
|
} else {
|
|
|
|
return "Só pode seleccionar " + limit + " elementos";
|
|
|
|
}
|
|
|
|
},
|
|
|
|
formatLoadMore: function (pageNumber) {
|
2014-01-08 13:35:47 +04:00
|
|
|
return "Cargando máis resultados…";
|
2013-04-27 15:38:00 +04:00
|
|
|
},
|
|
|
|
formatSearching: function () {
|
2014-01-08 13:35:47 +04:00
|
|
|
return "Buscando…";
|
2013-04-27 15:38:00 +04:00
|
|
|
}
|
2014-05-16 13:06:58 +04:00
|
|
|
};
|
2014-05-15 14:55:44 +04:00
|
|
|
|
2014-05-16 13:02:10 +04:00
|
|
|
$.extend($.fn.select2.defaults, $.fn.select2.locales['gl']);
|
2013-04-27 15:38:00 +04:00
|
|
|
})(jQuery);
|