Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create select2_locale_ru.js

Russian translation file for Select2
  • Loading branch information...
commit ccb1c7a1e80b42923672ab63005b138490d29559 1 parent cd0adbe
@smartcorestudio smartcorestudio authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 select2_locale_ru.js
View
15 select2_locale_ru.js
@@ -0,0 +1,15 @@
+/**
+ * Select2 Russian translation
+ */
+(function ($) {
+ "use strict";
+
+ $.extend($.fn.select2.defaults, {
+ formatNoMatches: function () { return "Совпадений не найдено"; },
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Пожалуйста, введите еще " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5) ? "а" : "ов")); },
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Пожалуйста, введите на " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5)? "а" : "ов")) + " меньше"; },
+ formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit == 1 ? "" : ((limit > 1)&&(limit < 5)? "а" : "ов")); },
+ formatLoadMore: function (pageNumber) { return "Загрузка данных..."; },
+ formatSearching: function () { return "Поиск..."; }
+ });
+})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.