1
0
mirror of synced 2024-11-29 16:16:02 +03:00
select2/select2_locale_lt.js

30 lines
1.3 KiB
JavaScript
Raw Normal View History

2013-04-08 14:12:14 +04:00
/**
* Select2 lithuanian translation.
*
2013-04-08 16:03:22 +04:00
* Author: CRONUS Karmalakas <cronus dot karmalakas at gmail dot com>
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"; },
2013-04-08 14:12:14 +04:00
formatInputTooShort: function (input, min) {
2013-05-03 02:56:21 +04:00
var n = min - input.length,
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių');
2013-04-08 14:12:14 +04:00
return "Įrašykite dar " + n + " simbol" + suffix;
},
formatInputTooLong: function (input, max) {
2013-05-03 02:56:21 +04:00
var n = input.length - max,
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių');
2013-04-08 14:12:14 +04:00
return "Pašalinkite " + n + " simbol" + suffix;
},
formatSelectionTooBig: function (limit) {
2013-05-03 02:56:21 +04:00
var n = limit,
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'ą' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'us' : 'ų');
2013-04-08 14:12:14 +04:00
return "Jūs galite pasirinkti tik " + limit + " element" + suffix;
},
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų..."; },
formatSearching: function () { return "Ieškoma..."; }
});
})(jQuery);