From 8c3f71145e17902b9f0ead47d92971bf7eeaf6be Mon Sep 17 00:00:00 2001 From: bigmihail Date: Tue, 19 Mar 2013 22:58:59 +0200 Subject: [PATCH] Create Ukrainian translation file --- select2_locale_ua.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 select2_locale_ua.js diff --git a/select2_locale_ua.js b/select2_locale_ua.js new file mode 100644 index 00000000..58d31e76 --- /dev/null +++ b/select2_locale_ua.js @@ -0,0 +1,17 @@ +/** + * Select2 translation. + * + * Author: bigmihail + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "Нічого не знайдено"; }, + formatInputTooShort: function (input, min) { var n = min - input.length, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка ще " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ]; }, + formatInputTooLong: function (input, max) { var n = input.length - max, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка на " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ] + " менше"; }, + formatSelectionTooBig: function (limit) {var s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Ви можете вибрати лише " + limit + " елемент" + s[ (limit%100>4 && limit%100<=20)? 2 : p[Math.min(limit%10, 5)] ]; }, + formatLoadMore: function (pageNumber) { return "Завантаження даних..."; }, + formatSearching: function () { return "Пошук..."; } + }); +})(jQuery);