Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /** |
| 2 | * Select2 Lithuanian translation. |
||
| 3 | * |
||
| 4 | * @author CRONUS Karmalakas <cronus dot karmalakas at gmail dot com> |
||
| 5 | * @author Uriy Efremochkin <efremochkin@uriy.me> |
||
| 6 | */ |
||
| 7 | (function ($) { |
||
| 8 | "use strict"; |
||
| 9 | |||
| 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" : "ą"); |
||
| 16 | }, |
||
| 17 | formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų…"; }, |
||
| 18 | formatSearching: function () { return "Ieškoma…"; } |
||
| 19 | }; |
||
| 20 | |||
| 21 | $.extend($.fn.select2.defaults, $.fn.select2.locales['lt']); |
||
| 22 | |||
| 23 | function character (n) { |
||
| 24 | return " " + n + " simbol" + ((n%100 > 9 && n%100 < 21) || n%10 == 0 ? "ių" : n%10 > 1 ? "ius" : "į"); |
||
| 25 | } |
||
| 26 | })(jQuery); |