1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Latvian l10n improved

This commit is contained in:
Uriy Efremochkin 2014-01-07 19:19:03 +06:00
parent daea53193e
commit cc254ee219

View File

@ -1,16 +1,17 @@
/** /**
* Select2 Latvian translation * Select2 Latvian translation.
*
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Sakritību nav"; }, formatNoMatches: function () { return "Sakritību nav"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us" : (/^\d*[1]$/im.test(n)? "u" : "us")); }, 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"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Lūdzu ievadiet par " + n + " simbol" + (n == 11 ? "iem" : (/^\d*[1]$/im.test(n)? "u" : "iem")) + " mazāk"; }, 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"; },
formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : (/^\d*[1]$/im.test(limit)? "u" : "us")); }, formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : limit%10 == 1 ? "u" : "us"); },
formatLoadMore: function (pageNumber) { return "Datu ielāde..."; }, formatLoadMore: function (pageNumber) { return "Datu ielāde..."; },
formatSearching: function () { return "Meklēšana..."; } formatSearching: function () { return "Meklēšana..."; }
}); });
})(jQuery); })(jQuery);