Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/**
2
 * Select2 Latvian translation.
3
 *
4
 * @author  Uriy Efremochkin <efremochkin@uriy.me>
5
 */
6
(function ($) {
7
    "use strict";
8
 
9
    $.fn.select2.locales['lv'] = {
10
        formatNoMatches: function () { return "Sakritību nav"; },
11
        formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us" : n%10 == 1 ? "u" : "us"); },
12
        formatInputTooLong: function (input, max) { var n = input.length - max; return "Lūdzu ievadiet par " + n + " simbol" + (n == 11 ? "iem" : n%10 == 1 ? "u" : "iem") + " mazāk"; },
13
        formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : limit%10 == 1 ? "u" : "us"); },
14
        formatLoadMore: function (pageNumber) { return "Datu ielāde…"; },
15
        formatSearching: function () { return "Meklēšana…"; }
16
    };
17
 
18
    $.extend($.fn.select2.defaults, $.fn.select2.locales['lv']);
19
})(jQuery);