Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
b128a0b6
Commit
b128a0b6
authored
Jan 13, 2022
by
longpanda
Browse files
fix the page language display issue in VentoyPlugson
parent
676831db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
Plugson/www/static/js/vtoy.js
Plugson/www/static/js/vtoy.js
+13
-13
No files found.
Plugson/www/static/js/vtoy.js
View file @
b128a0b6
...
...
@@ -1064,13 +1064,13 @@ var g_type_select_validator = $("#TypeSelectForm").validate({
function
VtoySelectType
(
cb
,
para
)
{
$
(
'
#TypeSelectForm #TypeSelForm_lang_1
'
).
text
(
g_vtoy_cur_language
.
STR_SELECT
);
if
(
g_current_language
===
'
en
'
)
{
$
(
'
#
SetDirForm #SetDir
Form_lang_2
'
).
text
(
"
OK
"
);
$
(
'
#
SetDirForm #SetDir
Form_lang_3
'
).
text
(
"
Cancel
"
);
$
(
'
#
TypeSelectForm #TypeSel
Form_lang_2
'
).
text
(
"
OK
"
);
$
(
'
#
TypeSelectForm #TypeSel
Form_lang_3
'
).
text
(
"
Cancel
"
);
}
else
{
$
(
'
#
SetDirForm #SetDir
Form_lang_2
'
).
text
(
"
确定
"
);
$
(
'
#
SetDirForm #SetDir
Form_lang_3
'
).
text
(
"
取消
"
);
$
(
'
#
TypeSelectForm #TypeSel
Form_lang_2
'
).
text
(
"
确定
"
);
$
(
'
#
TypeSelectForm #TypeSel
Form_lang_3
'
).
text
(
"
取消
"
);
}
var
$tbl
=
$
(
"
#id_type_select_table tbody
"
);
...
...
@@ -1133,11 +1133,11 @@ function VtoySetKey(cb, para) {
$
(
'
#SetKeyForm #SetKeyForm_lang_3
'
).
text
(
para
.
title2
);
if
(
g_current_language
===
'
en
'
)
{
$
(
'
#Set
Dir
Form #Set
Dir
Form_lang_4
'
).
text
(
"
OK
"
);
$
(
'
#Set
Dir
Form #Set
Dir
Form_lang_5
'
).
text
(
"
Cancel
"
);
$
(
'
#Set
Key
Form #Set
Key
Form_lang_4
'
).
text
(
"
OK
"
);
$
(
'
#Set
Key
Form #Set
Key
Form_lang_5
'
).
text
(
"
Cancel
"
);
}
else
{
$
(
'
#Set
Dir
Form #Set
Dir
Form_lang_4
'
).
text
(
"
确定
"
);
$
(
'
#Set
Dir
Form #Set
Dir
Form_lang_5
'
).
text
(
"
取消
"
);
$
(
'
#Set
Key
Form #Set
Key
Form_lang_4
'
).
text
(
"
确定
"
);
$
(
'
#Set
Key
Form #Set
Key
Form_lang_5
'
).
text
(
"
取消
"
);
}
g_set_key_callback
=
cb
;
...
...
@@ -1395,15 +1395,15 @@ function VtoySetDirFile(cb, para) {
$
(
'
#SetDirFileModal #SetDirFileForm_label2
'
).
text
(
para
.
label2
);
if
(
g_current_language
===
'
en
'
)
{
$
(
'
#SetDirFileModal #SetDirFile
Modal
_ok
'
).
text
(
"
OK
"
);
$
(
'
#SetDirFileModal #SetDirFile
Modal
_cancel
'
).
text
(
"
Cancel
"
);
$
(
'
#SetDirFileModal #SetDirFile
Form
_ok
'
).
text
(
"
OK
"
);
$
(
'
#SetDirFileModal #SetDirFile
Form
_cancel
'
).
text
(
"
Cancel
"
);
$
(
'
#SetDirFileModal #id_note_dirfile_cn
'
).
hide
();
$
(
'
#SetDirFileModal #id_note_dirfile_en
'
).
show
();
}
else
{
$
(
'
#SetDirFileModal #SetDirFile
Modal
_ok
'
).
text
(
"
确定
"
);
$
(
'
#SetDirFileModal #SetDirFile
Modal
_cancel
'
).
text
(
"
取消
"
);
$
(
'
#SetDirFileModal #SetDirFile
Form
_ok
'
).
text
(
"
确定
"
);
$
(
'
#SetDirFileModal #SetDirFile
Form
_cancel
'
).
text
(
"
取消
"
);
$
(
'
#SetDirFileModal #id_note_dirfile_en
'
).
hide
();
$
(
'
#SetDirFileModal #id_note_dirfile_cn
'
).
show
();
...
...
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