One-KVM/web/kvm/navbar-msd.pug
mofeng-git 19d1c52ac4 feat: 完善 Web 界面国际化支持
- 将包含数字的无意义 i18n 键名替换为语义化名称 (如 kvm_text1 → about_title)
- 为缺失多语言支持的界面文本添加中英文翻译
- 修复不准确的翻译内容和 HTML 标签格式错误
- 更新所有 Pug 模板文件以使用新的 i18n 键名
- 新增登录页面"记住我"、USB 连接确认等功能的多语言支持
- 统一翻译键命名规范,提升代码可维护性
2025-08-21 13:23:33 +08:00

129 lines
4.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

li.right.feature-disabled#msd-dropdown
a.menu-button(href="#")
+navbar_led("msd-led", "led-msd")
span(i18n="drive_menu") Drive
.menu#msd-menu
.text
b(i18n="drive_title") Mass Storage Drive:
span#msd-status
br
hr
.hidden#msd-message-offline
+menu_message("warning", "Mass Storage Drive is offline", "msd-message-offline")
hr
.hidden#msd-message-image-broken
+menu_message("warning", "Current image is broken!", "msd-message-image-broken")
| Perhaps uploading was interrupted#[br]
hr
.hidden#msd-message-too-big-for-dvd
+menu_message("warning", "Current image is too big for DVD!", "msd-message-too-big-for-dvd")
| The maximum is 31.6GiB. Please switch to the Flash mode.
hr
.hidden#msd-message-out-of-storage
+menu_message("warning", "Current image is out of storage", "msd-message-out-of-storage")
| This image was connected manually using #[b kvmd-otgmsd]
hr
.hidden#msd-message-rw-enabled
+menu_message("warning", "Read-write mode is enabled", "msd-message-rw-enabled")
| Do not turn off PiKVM while this is active to prevent#[br]
| filesystem corruption. Use read-only mode where possible,#[br]
| as writing to SD card often can reduce its lifespan.
hr
.hidden#msd-message-downloads
+menu_message("info", "The image is being downloaded from One-KVM", "msd-message-downloads")
| Please wait
hr
table.kv
tr
td(i18n="drive_image") Image:
td(width="100%") #[select#msd-image-selector(disabled)]
td #[button#msd-download-button(disabled title="Download image") #[b   ⇩  ]]
td #[button#msd-remove-button(disabled title="Remove image") #[b   ×  ]]
table.kv
tr
+menu_radio_td2("msd-mode-radio", [
{title: "CD/DVD", value: "1", checked: true},
{title: "Flash", value: "0"},
]) Drive #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]:
td  
+menu_switch_td2("msd-rw-switch", false, false) Writable:
tr
td(i18n="drive_file_display") Files
td
div.radio-box()
input#msd-mode-radio-image(checked type="radio" name="file-mode-radio" value="1")
label(for="msd-mode-radio-image" i18n="drive_image_files") ImageFiles
input#msd-mode-radio-file(type="radio" name="file-mode-radio" value="0")
label(for="msd-mode-radio-file" i18n="drive_normal_files") NormalFiles
hr
#msd-storages
hr
.buttons.buttons-row
button.row50#msd-select-new-button(disabled i18n="drive_select_upload") Select image to upload
button.row25#msd-upload-new-button(disabled i18n="drive_upload") Upload
button.row25#msd-abort-new-button(disabled i18n="drive_abort") Abort
.hidden#msd-message-another-user-uploads
+menu_message("info", "Another user uploads an image", "msd-message-another-user-uploads")
hr
.hidden#msd-new-sub
table.kv
tr
td(i18n="drive_local_file") Specify a local file:
td #[input#msd-new-file(type="file")]
tr
td(i18n="drive_paste_url") #[b Or] paste a URL:
td #[input#msd-new-url(type="text" style="width: 100%")]
tr.hidden#msd-new-part
td(i18n="drive_upload_partition") Upload partition:
td(width="100%") #[select#msd-new-part-selector]
div(id="msd-uploading-sub" class="hidden")
hr
.hidden#msd-uploading-sub
table.kv
tr
td(i18n="drive_new_image") New image:
td.value#msd-uploading-name
tr
td(i18n="drive_upload_size") Upload size:
td.value#msd-uploading-size
.text
.progress#msd-uploading-progress
span.progress-value#msd-uploading-progress-value
hr
.hidden#msd-new-tips
table.kv
tr
td.value(i18n="drive_note") Note:
td(i18n="drive_note_browser") • Don't close the browser page until the upload is complete.
tr
td
td(i18n="drive_note_stream") • To speed up the upload, close the stream window.
hr
.buttons.buttons-row
button.row50#msd-connect-button(disabled i18n="drive_connect") Connect drive to Server
button.row25#msd-disconnect-button(disabled i18n="drive_disconnect") Disconnect
button.row25#msd-reset-button(disabled i18n="drive_reset") Reset
hr
.text
b(i18n="drive_quick_transfer") Quick file transfer:
br
sub(i18n="drive_transfer_upload_note") • Select NormalFiles tab to upload, package them and mount image
br
sub(i18n="drive_transfer_download_note") • Disconnect MSD, unpackage it, select tab to download
br
hr
div(class="buttons buttons-row")
button.row50#msd-file-image-update-button(i18n="drive_package_files") Package files into image
button.row50#msd-file-image-unzip-button(i18n="drive_unpackage_files") Unpackage files from image
hr