Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/**
2
 * Select2 <Language> translation.
3
 *
4
 * Author: Your Name <your@email>
5
 */
6
(function ($) {
7
    "use strict";
8
 
9
    $.fn.select2.locales['en'] = {
10
        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."; },
11
        formatNoMatches: function () { return "No matches found"; },
12
        formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " or more character" + (n == 1 ? "" : "s"); },
13
        formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1 ? "" : "s"); },
14
        formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
15
        formatLoadMore: function (pageNumber) { return "Loading more results…"; },
16
        formatSearching: function () { return "Searching…"; }
17
    };
18
 
19
    $.extend($.fn.select2.defaults, $.fn.select2.locales['en']);
20
})(jQuery);