Commit e87446fc authored by antoor's avatar antoor

Increase multi-language support

增加多语言支持
parent 747dbd8a
......@@ -146,6 +146,15 @@ module.exports = {
confirm: 'Are you sure to clear all the cache?',
success: 'Clear all cache success!',
error: (err) => antSword.noxss(`Clear all cache failed!\n${err}`)
},
accordion: {
base: 'Base',
http: 'HTTP',
other: 'Other'
},
otherConf: {
nohttps: 'Ignore HTTPS certificate',
notermcache: "Don't use the terminal's cache"
}
}
},
......
......@@ -147,6 +147,15 @@ module.exports = {
confirm: '确定清空所有缓存数据吗?',
success: '清空全部缓存完毕!',
error: (err) => antSword.noxss(`清空全部缓存失败!\n${err}`)
},
accordion: {
base: '基础配置',
http: '请求信息',
other: '其他设置'
},
otherConf: {
nohttps: '忽略HTTPS证书',
notermcache: "虚拟终端不使用缓存"
}
}
},
......
......@@ -120,13 +120,13 @@ class Form {
const accordion = win.attachAccordion({
items: [{
id: 'base',
text: `<i class="fa fa-file-text"></i> 基础配置`
text: `<i class="fa fa-file-text"></i> ${LANG['list']['accordion']['base']}`
}, {
id: 'http',
text: `<i class="fa fa-edge"></i> 请求信息`
text: `<i class="fa fa-edge"></i> ${LANG['list']['accordion']['http']}`
}, {
id: 'other',
text: `<i class="fa fa-cogs"></i> 其他设置`
text: `<i class="fa fa-cogs"></i> ${LANG['list']['accordion']['other']}`
}]});
return accordion;
}
......@@ -269,10 +269,10 @@ class Form {
}, {
type: 'block', inputWidth: 'auto', offsetTop: 12, list: [
{
type: "checkbox", name: 'ignore-https', label: "忽略HTTPS证书",
type: "checkbox", name: 'ignore-https', label: LANG['list']['otherConf']['nohttps'],
checked: opt['ignore-https'] === 1
}, {
type: "checkbox", name: 'terminal-cache', label: "虚拟终端不使用缓存",
type: "checkbox", name: 'terminal-cache', label: LANG['list']['otherConf']['notermcache'],
checked: opt['terminal-cache'] === 1
}
]}], true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment