diff options
Diffstat (limited to 'apps/files_external/3rdparty/select2/select2_locale_ru.js')
-rw-r--r-- | apps/files_external/3rdparty/select2/select2_locale_ru.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/files_external/3rdparty/select2/select2_locale_ru.js b/apps/files_external/3rdparty/select2/select2_locale_ru.js new file mode 100644 index 00000000000..0f45ce0dddf --- /dev/null +++ b/apps/files_external/3rdparty/select2/select2_locale_ru.js @@ -0,0 +1,21 @@ +/** + * Select2 Russian translation. + * + * @author Uriy Efremochkin <efremochkin@uriy.me> + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "Совпадений не найдено"; }, + formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще" + character(min - input.length); }, + formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; }, + formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); }, + formatLoadMore: function (pageNumber) { return "Загрузка данных…"; }, + formatSearching: function () { return "Поиск…"; } + }); + + function character (n) { + return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов"); + } +})(jQuery); |