Commit e87446fc authored by antoor's avatar antoor

Increase multi-language support

增加多语言支持
parent 747dbd8a
...@@ -146,6 +146,15 @@ module.exports = { ...@@ -146,6 +146,15 @@ module.exports = {
confirm: 'Are you sure to clear all the cache?', confirm: 'Are you sure to clear all the cache?',
success: 'Clear all cache success!', success: 'Clear all cache success!',
error: (err) => antSword.noxss(`Clear all cache failed!\n${err}`) 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 = { ...@@ -147,6 +147,15 @@ module.exports = {
confirm: '确定清空所有缓存数据吗?', confirm: '确定清空所有缓存数据吗?',
success: '清空全部缓存完毕!', success: '清空全部缓存完毕!',
error: (err) => antSword.noxss(`清空全部缓存失败!\n${err}`) error: (err) => antSword.noxss(`清空全部缓存失败!\n${err}`)
},
accordion: {
base: '基础配置',
http: '请求信息',
other: '其他设置'
},
otherConf: {
nohttps: '忽略HTTPS证书',
notermcache: "虚拟终端不使用缓存"
} }
} }
}, },
......
...@@ -120,13 +120,13 @@ class Form { ...@@ -120,13 +120,13 @@ class Form {
const accordion = win.attachAccordion({ const accordion = win.attachAccordion({
items: [{ items: [{
id: 'base', id: 'base',
text: `<i class="fa fa-file-text"></i> 基础配置` text: `<i class="fa fa-file-text"></i> ${LANG['list']['accordion']['base']}`
}, { }, {
id: 'http', id: 'http',
text: `<i class="fa fa-edge"></i> 请求信息` text: `<i class="fa fa-edge"></i> ${LANG['list']['accordion']['http']}`
}, { }, {
id: 'other', id: 'other',
text: `<i class="fa fa-cogs"></i> 其他设置` text: `<i class="fa fa-cogs"></i> ${LANG['list']['accordion']['other']}`
}]}); }]});
return accordion; return accordion;
} }
...@@ -269,10 +269,10 @@ class Form { ...@@ -269,10 +269,10 @@ class Form {
}, { }, {
type: 'block', inputWidth: 'auto', offsetTop: 12, list: [ 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 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 checked: opt['terminal-cache'] === 1
} }
]}], true); ]}], 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