mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-22 11:35:47 -04:00
fix the page language display issue in VentoyPlugson
This commit is contained in:
parent
676831dbbe
commit
b128a0b6d3
@ -1066,11 +1066,11 @@ function VtoySelectType(cb, para) {
|
|||||||
$('#TypeSelectForm #TypeSelForm_lang_1').text(g_vtoy_cur_language.STR_SELECT);
|
$('#TypeSelectForm #TypeSelForm_lang_1').text(g_vtoy_cur_language.STR_SELECT);
|
||||||
|
|
||||||
if (g_current_language === 'en') {
|
if (g_current_language === 'en') {
|
||||||
$('#SetDirForm #SetDirForm_lang_2').text(" OK");
|
$('#TypeSelectForm #TypeSelForm_lang_2').text(" OK");
|
||||||
$('#SetDirForm #SetDirForm_lang_3').text("Cancel");
|
$('#TypeSelectForm #TypeSelForm_lang_3').text("Cancel");
|
||||||
} else {
|
} else {
|
||||||
$('#SetDirForm #SetDirForm_lang_2').text("确定");
|
$('#TypeSelectForm #TypeSelForm_lang_2').text("确定");
|
||||||
$('#SetDirForm #SetDirForm_lang_3').text("取消");
|
$('#TypeSelectForm #TypeSelForm_lang_3').text("取消");
|
||||||
}
|
}
|
||||||
|
|
||||||
var $tbl = $("#id_type_select_table tbody");
|
var $tbl = $("#id_type_select_table tbody");
|
||||||
@ -1133,11 +1133,11 @@ function VtoySetKey(cb, para) {
|
|||||||
$('#SetKeyForm #SetKeyForm_lang_3').text(para.title2);
|
$('#SetKeyForm #SetKeyForm_lang_3').text(para.title2);
|
||||||
|
|
||||||
if (g_current_language === 'en') {
|
if (g_current_language === 'en') {
|
||||||
$('#SetDirForm #SetDirForm_lang_4').text(" OK");
|
$('#SetKeyForm #SetKeyForm_lang_4').text(" OK");
|
||||||
$('#SetDirForm #SetDirForm_lang_5').text("Cancel");
|
$('#SetKeyForm #SetKeyForm_lang_5').text("Cancel");
|
||||||
} else {
|
} else {
|
||||||
$('#SetDirForm #SetDirForm_lang_4').text("确定");
|
$('#SetKeyForm #SetKeyForm_lang_4').text("确定");
|
||||||
$('#SetDirForm #SetDirForm_lang_5').text("取消");
|
$('#SetKeyForm #SetKeyForm_lang_5').text("取消");
|
||||||
}
|
}
|
||||||
|
|
||||||
g_set_key_callback = cb;
|
g_set_key_callback = cb;
|
||||||
@ -1395,15 +1395,15 @@ function VtoySetDirFile(cb, para) {
|
|||||||
$('#SetDirFileModal #SetDirFileForm_label2').text(para.label2);
|
$('#SetDirFileModal #SetDirFileForm_label2').text(para.label2);
|
||||||
|
|
||||||
if (g_current_language === 'en') {
|
if (g_current_language === 'en') {
|
||||||
$('#SetDirFileModal #SetDirFileModal_ok').text(" OK");
|
$('#SetDirFileModal #SetDirFileForm_ok').text(" OK");
|
||||||
$('#SetDirFileModal #SetDirFileModal_cancel').text("Cancel");
|
$('#SetDirFileModal #SetDirFileForm_cancel').text("Cancel");
|
||||||
|
|
||||||
$('#SetDirFileModal #id_note_dirfile_cn').hide();
|
$('#SetDirFileModal #id_note_dirfile_cn').hide();
|
||||||
$('#SetDirFileModal #id_note_dirfile_en').show();
|
$('#SetDirFileModal #id_note_dirfile_en').show();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$('#SetDirFileModal #SetDirFileModal_ok').text("确定");
|
$('#SetDirFileModal #SetDirFileForm_ok').text("确定");
|
||||||
$('#SetDirFileModal #SetDirFileModal_cancel').text("取消");
|
$('#SetDirFileModal #SetDirFileForm_cancel').text("取消");
|
||||||
|
|
||||||
$('#SetDirFileModal #id_note_dirfile_en').hide();
|
$('#SetDirFileModal #id_note_dirfile_en').hide();
|
||||||
$('#SetDirFileModal #id_note_dirfile_cn').show();
|
$('#SetDirFileModal #id_note_dirfile_cn').show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user