1
0
mirror of synced 2024-11-23 05:26:10 +03:00
select2/select2_locale_lt.js

25 lines
1.1 KiB
JavaScript
Raw Normal View History

2013-04-08 14:12:14 +04:00
/**
2014-01-07 17:14:52 +04:00
* Select2 Lithuanian translation.
2013-04-08 14:12:14 +04:00
*
2014-01-07 17:14:52 +04:00
* @author CRONUS Karmalakas <cronus dot karmalakas at gmail dot com>
* @author Uriy Efremochkin <efremochkin@uriy.me>
2013-04-08 14:12:14 +04:00
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
2013-04-08 15:03:03 +04:00
formatNoMatches: function () { return "Atitikmenų nerasta"; },
2014-01-07 17:14:52 +04:00
formatInputTooShort: function (input, min) { return "Įrašykite dar" + character(min - input.length); },
formatInputTooLong: function (input, max) { return "Pašalinkite" + character(input.length - max); },
2013-04-08 14:12:14 +04:00
formatSelectionTooBig: function (limit) {
2014-01-07 17:14:52 +04:00
return "Jūs galite pasirinkti tik " + limit + " element" + ((limit%100 > 9 && limit%100 < 21) || limit%10 == 0 ? "ų" : limit%10 > 1 ? "us" : "ą");
2013-04-08 14:12:14 +04:00
},
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų…"; },
formatSearching: function () { return "Ieškoma…"; }
2013-04-08 14:12:14 +04:00
});
2014-01-07 17:14:52 +04:00
function character (n) {
return " " + n + " simbol" + ((n%100 > 9 && n%100 < 21) || n%10 == 0 ? "ių" : n%10 > 1 ? "ius" : "į");
}
2013-04-08 14:12:14 +04:00
})(jQuery);