select2_locale_lt.js 1.3 KB

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Select2 lithuanian translation.
  3. *
  4. * Author: CRONUS Karmalakas <cronus dot karmalakas at gmail dot com>
  5. */
  6. (function ($) {
  7. "use strict";
  8. $.extend($.fn.select2.defaults, {
  9. formatNoMatches: function () { return "Atitikmenų nerasta"; },
  10. formatInputTooShort: function (input, min) {
  11. var n = min - input.length,
  12. suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių');
  13. return "Įrašykite dar " + n + " simbol" + suffix;
  14. },
  15. formatInputTooLong: function (input, max) {
  16. var n = input.length - max,
  17. suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių');
  18. return "Pašalinkite " + n + " simbol" + suffix;
  19. },
  20. formatSelectionTooBig: function (limit) {
  21. var n = limit,
  22. suffix = (n % 10 == 1) && (n % 100 != 11) ? 'ą' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'us' : 'ų');
  23. return "Jūs galite pasirinkti tik " + limit + " element" + suffix;
  24. },
  25. formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų..."; },
  26. formatSearching: function () { return "Ieškoma..."; }
  27. });
  28. })(jQuery);