1
0
mirror of synced 2024-11-25 14:26:03 +03:00

Adding a translation template

This will make it easier to translate to other languages.
This commit is contained in:
Jens Rantil 2013-03-13 17:52:17 +01:00
parent 759fb439fe
commit 54dbb825a8

View File

@ -0,0 +1,15 @@
/**
* Select2 <Language> translation.
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "No matches found"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1 ? "" : "s"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Please enter " + n + " less character" + (n == 1? "" : "s"); },
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
formatSearching: function () { return "Searching..."; }
});
})(jQuery);