Commit b6f1cb42 authored by antoor's avatar antoor

Multi-language support

多语言支持
parent 38615ed8
...@@ -155,7 +155,9 @@ module.exports = { ...@@ -155,7 +155,9 @@ module.exports = {
}, },
otherConf: { otherConf: {
nohttps: 'Ignore HTTPS certificate', nohttps: 'Ignore HTTPS certificate',
terminalCache: "Use the terminal's cache" terminalCache: "Use the terminal's cache",
requestTimeout: 'Request timeout',
commandPath: 'Custom terminal-execPath'
} }
} }
}, },
......
...@@ -156,7 +156,9 @@ module.exports = { ...@@ -156,7 +156,9 @@ module.exports = {
}, },
otherConf: { otherConf: {
nohttps: '忽略HTTPS证书', nohttps: '忽略HTTPS证书',
terminalCache: "虚拟终端使用缓存" terminalCache: '虚拟终端使用缓存',
requestTimeout: '请求超时',
commandPath: '自定义终端执行路径'
} }
} }
}, },
......
...@@ -285,7 +285,7 @@ class Form { ...@@ -285,7 +285,7 @@ class Form {
type: "checkbox", name: 'terminal-cache', label: LANG['list']['otherConf']['terminalCache'], type: "checkbox", name: 'terminal-cache', label: LANG['list']['otherConf']['terminalCache'],
checked: opt['terminal-cache'] === 1 checked: opt['terminal-cache'] === 1
}, { }, {
type: "label", label: '请求超时' type: "label", label: LANG['list']['otherConf']['requestTimeout']
}, { }, {
type: "combo", label: '/ms', inputWidth: 100, name: "request-timeout", type: "combo", label: '/ms', inputWidth: 100, name: "request-timeout",
options: ((items) => { options: ((items) => {
...@@ -306,7 +306,7 @@ class Form { ...@@ -306,7 +306,7 @@ class Form {
'5000', '10000', '30000', '60000' '5000', '10000', '30000', '60000'
]) ])
}, { }, {
type: 'label', label: '自定义终端执行路径' type: 'label', label: LANG['list']['otherConf']['commandPath']
}, { }, {
type: 'combo', name: 'command-path', inputWidth: 200, options: ((items) => { type: 'combo', name: 'command-path', inputWidth: 200, options: ((items) => {
let ret = []; let ret = [];
......
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