2013-04-08 14:12:14 +04:00
|
|
|
/**
|
|
|
|
* Select2 lithuanian translation.
|
|
|
|
*
|
|
|
|
* Author: CRONUS Karmalakas <cronus.karmalakas@gmail.com>
|
|
|
|
*/
|
|
|
|
(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) {
|
|
|
|
var n = min - input.length;
|
2013-04-08 15:03:03 +04:00
|
|
|
var 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) {
|
|
|
|
var n = input.length - max;
|
2013-04-08 15:03:03 +04:00
|
|
|
var 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-04-08 15:03:03 +04:00
|
|
|
var 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);
|