Permalink
Browse files

Create Ukrainian translation file

  • Loading branch information...
1 parent a425c12 commit 8c3f71145e17902b9f0ead47d92971bf7eeaf6be @bigmihail bigmihail committed Mar 19, 2013
Showing with 17 additions and 0 deletions.
  1. +17 −0 select2_locale_ua.js
View
@@ -0,0 +1,17 @@
+/**
+ * Select2 <Language> translation.
+ *
+ * Author: bigmihail <bigmihail@bigmir.net>
+ */
+(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);

0 comments on commit 8c3f711

Please sign in to comment.