Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
e87446fc
Commit
e87446fc
authored
Jun 28, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase multi-language support
增加多语言支持
parent
747dbd8a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
en.js
source/language/en.js
+9
-0
zh.js
source/language/zh.js
+9
-0
form.js
source/modules/shellmanager/list/form.js
+5
-5
No files found.
source/language/en.js
View file @
e87446fc
...
@@ -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"
}
}
}
}
},
},
...
...
source/language/zh.js
View file @
e87446fc
...
@@ -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
:
"虚拟终端不使用缓存"
}
}
}
}
},
},
...
...
source/modules/shellmanager/list/form.js
View file @
e87446fc
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment