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

47 lines
1.8 KiB
Plaintext

li.right#text-dropdown
a.menu-button(href="#")
+navbar_led("stream-ocr-led", "led-gear", "feature-disabled")
span(i18n="text_menu") Text
.menu#text-menu(style="width: 360px")
.text
b(i18n="text_paste_description") Paste text as keypress sequence#[br]
sub(i18n="text_keyboard_layout_note") Please note that PiKVM cannot switch the keyboard layout
hr
.text(style="margin-right: 20px")
textarea#hid-pak-text(data-focus placeholder="Enter your text here")
table.kv
tr
td
button#hid-pak-button(disabled data-force-hide-menu title="Ctrl+Enter when the text is focused" i18n="text_paste_button") • Paste
td(i18n="text_using_keymap") using host keymap
td #[select#hid-pak-keymap-selector]
table.kv
tr
+menu_slider_td3("hid-pak-delay-slider", "hid-pak-delay-value", true, false, "hid-pak-slow-switch") Delay between keys:
tr
+menu_switch_td2("hid-pak-secure-switch", true, false, "hid-pak-secure-switch") Hide input text:
tr
+menu_switch_td2("hid-pak-ask-switch", true, true, "hid-pak-ask-switch") Ask paste confirmation:
.feature-disabled#stream-ocr
hr
br
hr
.text
b(i18n="text_ocr_title") Text recognition <sup><i>&beta;</i></sup>#[br]
sub(i18n="text_ocr_local_note") #[a(target="_blank" href="https://docs.pikvm.org/ocr") OCR] works locally on PiKVM
hr
table.kv
tr
td #[button#stream-ocr-button(data-force-hide-menu i18n="text_ocr_select_area") &bull; Select area]
td(i18n="text_ocr_for") for
td #[select#stream-ocr-lang-selector]
td(i18n="text_ocr_recognition") text recognition
table.kv
tr
td(colspan="4" i18n="text_ocr_enter_hint") &bull; Next hit the #[b Enter] to recognize and copy text to clipboard...
tr
td(colspan="4" i18n="text_ocr_escape_hint") &bull; Or hit the #[b Escape] to cancel a selection
tr
td