Permalink
Browse files

Create select2_locale_ru.js

Russian translation file for Select2
  • Loading branch information...
1 parent cd0adbe commit ccb1c7a1e80b42923672ab63005b138490d29559 @smartcorestudio smartcorestudio committed Feb 21, 2013
Showing with 15 additions and 0 deletions.
  1. +15 −0 select2_locale_ru.js
View
@@ -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);

0 comments on commit ccb1c7a

Please sign in to comment.