837715f939
Instead of instantly applying the translations, add them to an array. That way users can include the language files that their site supports and apply the required language using $.extend($.fn.select2.defaults, $.fn.select2.locales["nl"]); Signed-off-by: Kevin Brown <kevin@kevinbrown.in>
17 lines
999 B
JavaScript
17 lines
999 B
JavaScript
/**
|
||
* Select2 Macedonian translation.
|
||
*
|
||
* Author: Marko Aleksic <psybaron@gmail.com>
|
||
*/
|
||
(function ($) {
|
||
"use strict";
|
||
|
||
$.fn.select2.locales['mk'] = {
|
||
formatNoMatches: function () { return "Нема пронајдено совпаѓања"; },
|
||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Ве молиме внесете уште " + n + " карактер" + (n == 1 ? "" : "и"); },
|
||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Ве молиме внесете " + n + " помалку карактер" + (n == 1? "" : "и"); },
|
||
formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); },
|
||
formatLoadMore: function (pageNumber) { return "Вчитување резултати…"; },
|
||
formatSearching: function () { return "Пребарување…"; }
|
||
});
|
||
})(jQuery); |