2 * Select2 Lithuanian translation.
4 * @author CRONUS Karmalakas <cronus dot karmalakas at gmail dot com>
5 * @author Uriy Efremochkin <efremochkin@uriy.me>
10 $.fn
.select2
.locales
['lt'] = {
11 formatNoMatches: function () { return "Atitikmenų nerasta"; },
12 formatInputTooShort: function (input
, min
) { return "Įrašykite dar" + character(min
- input
.length
); },
13 formatInputTooLong: function (input
, max
) { return "Pašalinkite" + character(input
.length
- max
); },
14 formatSelectionTooBig: function (limit
) {
15 return "Jūs galite pasirinkti tik " + limit
+ " element" + ((limit
%100 > 9 && limit
%100 < 21) || limit
%10 == 0 ? "ų" : limit
%10 > 1 ? "us" : "ą");
17 formatLoadMore: function (pageNumber
) { return "Kraunama daugiau rezultatų…"; },
18 formatSearching: function () { return "Ieškoma…"; }
21 $.extend($.fn
.select2
.defaults
, $.fn
.select2
.locales
['lt']);
23 function character (n
) {
24 return " " + n
+ " simbol" + ((n
%100 > 9 && n
%100 < 21) || n
%10 == 0 ? "ių" : n
%10 > 1 ? "ius" : "į");