mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
feat: 完善 Web 界面国际化支持
- 将包含数字的无意义 i18n 键名替换为语义化名称 (如 kvm_text1 → about_title) - 为缺失多语言支持的界面文本添加中英文翻译 - 修复不准确的翻译内容和 HTML 标签格式错误 - 更新所有 Pug 模板文件以使用新的 i18n 键名 - 新增登录页面"记住我"、USB 连接确认等功能的多语言支持 - 统一翻译键命名规范,提升代码可维护性
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
li.right#macro-dropdown
|
||||
a.menu-button(href="#")
|
||||
+navbar_led("hid-recorder-led", "led-gear")
|
||||
span(i18n="kvm_text32") Macro
|
||||
span(i18n="macro_menu") Macro
|
||||
.menu
|
||||
.text
|
||||
b(i18n="kvm_text33") Record and play HID/ATX/GPIO actions#[br]
|
||||
sub(i18n="kvm_text34") For security reasons, the record will not be saved on the PiKVM
|
||||
b(i18n="macro_description") Record and play HID/ATX/GPIO actions#[br]
|
||||
sub(i18n="macro_security_note") For security reasons, the record will not be saved on the PiKVM
|
||||
hr
|
||||
.buttons.buttons-row
|
||||
button.row25#hid-recorder-record(disabled data-force-hide-menu i18n="kvm_text35") • Rec
|
||||
button.row25#hid-recorder-stop(disabled i18n="kvm_text36") Stop
|
||||
button.row25#hid-recorder-play(disabled i18n="kvm_text37") Play
|
||||
button.row25#hid-recorder-clear(disabled i18n="kvm_text38") Clear
|
||||
button.row25#hid-recorder-record(disabled data-force-hide-menu i18n="macro_record") • Rec
|
||||
button.row25#hid-recorder-stop(disabled i18n="macro_stop") Stop
|
||||
button.row25#hid-recorder-play(disabled i18n="macro_play") Play
|
||||
button.row25#hid-recorder-clear(disabled i18n="macro_clear") Clear
|
||||
hr
|
||||
|
||||
table.kv
|
||||
tr
|
||||
td(i18n="kvm_text39") Script time:
|
||||
td(i18n="macro_script_time") Script time:
|
||||
td.value#hid-recorder-time(colspan="2") 00:00:00.0
|
||||
tr
|
||||
td(i18n="kvm_text40") Scripted events:
|
||||
td(i18n="macro_script_events") Scripted events:
|
||||
tdvalue#hid-recorder-events-count 0
|
||||
td #[sup #[i(i18n="kvm_text41") include delays]]
|
||||
td #[sup #[i(i18n="macro_include_delays") include delays]]
|
||||
hr
|
||||
+menu_switch_table("hid-recorder-loop-switch", "Infinite loop playback", false, false, "hid-recorder-loop-switch")
|
||||
hr
|
||||
input#hid-recorder-new-script-file(type="file" style="display: none")
|
||||
.buttons.buttons-row
|
||||
button.row50#hid-recorder-upload(disabled i18n="kvm_text42") Upload script
|
||||
button.row50#hid-recorder-download(disabled i18n="kvm_text43") Download script
|
||||
button.row50#hid-recorder-upload(disabled i18n="macro_upload_script") Upload script
|
||||
button.row50#hid-recorder-download(disabled i18n="macro_download_script") Download script
|
||||
|
||||
Reference in New Issue
Block a user