Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/**
2
 * Select2 Chinese translation
3
 */
4
(function ($) {
5
    "use strict";
6
    $.fn.select2.locales['zh-CN'] = {
7
        formatNoMatches: function () { return "没有找到匹配项"; },
8
        formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
9
        formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
10
        formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
11
        formatLoadMore: function (pageNumber) { return "加载结果中…"; },
12
        formatSearching: function () { return "搜索中…"; }
13
    };
14
 
15
    $.extend($.fn.select2.defaults, $.fn.select2.locales['zh-CN']);
16
})(jQuery);