2013-03-13 17:52:17 +01:00
/**
* Select2 <Language> translation.
2014-06-11 19:52:08 -04:00
*
2013-03-13 18:01:28 +01:00
* Author: Your Name <your@email>
2013-03-13 17:52:17 +01:00
*/
(function ($) {
"use strict";
2014-04-15 09:20:22 +02:00
$.fn.select2.locales['en'] = {
2014-06-11 19:52:08 -04:00
formatMatches: function (matches) { if (matches === 1) { return "One result is available, press enter to select it."; } return matches + " results are available, use up and down arrow keys to navigate."; },
2013-03-13 17:52:17 +01:00
formatNoMatches: function () { return "No matches found"; },
2014-06-05 17:05:44 +03:00
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " or more character" + (n == 1 ? "" : "s"); },
2013-05-20 23:00:54 +09:00
formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1 ? "" : "s"); },
2013-03-13 17:52:17 +01:00
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
2014-01-08 15:35:47 +06:00
formatLoadMore: function (pageNumber) { return "Loading more results…"; },
formatSearching: function () { return "Searching…"; }
2014-05-16 10:55:03 +02:00
};
2014-05-15 12:55:44 +02:00
2014-05-16 11:02:10 +02:00
$.extend($.fn.select2.defaults, $.fn.select2.locales['en']);
2013-03-13 17:52:17 +01:00
})(jQuery);