汉化select2插件

dep_wangsr
RuoYi 5 years ago committed by Limy
parent 4fa28e847c
commit c4632d859f

@ -4590,12 +4590,12 @@ S2.define('select2/i18n/en',[],function () {
// English // English
return { return {
errorLoading: function () { errorLoading: function () {
return 'The results could not be loaded.'; return '无法载入结果';
}, },
inputTooLong: function (args) { inputTooLong: function (args) {
var overChars = args.input.length - args.maximum; var overChars = args.input.length - args.maximum;
var message = 'Please delete ' + overChars + ' character'; var message = '请删除' + overChars + '个字符';
if (overChars != 1) { if (overChars != 1) {
message += 's'; message += 's';
@ -4606,15 +4606,15 @@ S2.define('select2/i18n/en',[],function () {
inputTooShort: function (args) { inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length; var remainingChars = args.minimum - args.input.length;
var message = 'Please enter ' + remainingChars + ' or more characters'; var message = '请再输入至少' + remainingChars + '个字符';
return message; return message;
}, },
loadingMore: function () { loadingMore: function () {
return 'Loading more results…'; return '载入更多结果…';
}, },
maximumSelected: function (args) { maximumSelected: function (args) {
var message = 'You can only select ' + args.maximum + ' item'; var message = '最多只能选择' + args.maximum + '个项目';
if (args.maximum != 1) { if (args.maximum != 1) {
message += 's'; message += 's';
@ -4623,13 +4623,13 @@ S2.define('select2/i18n/en',[],function () {
return message; return message;
}, },
noResults: function () { noResults: function () {
return 'No results found'; return '未找到结果';
}, },
searching: function () { searching: function () {
return 'Searching…'; return '搜索中…';
}, },
removeAllItems: function () { removeAllItems: function () {
return 'Remove all items'; return '删除所有项目';
} }
}; };
}); });

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save