mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 01:21:54 +08:00
feat: 完善 Web 界面国际化支持
- 将包含数字的无意义 i18n 键名替换为语义化名称 (如 kvm_text1 → about_title) - 为缺失多语言支持的界面文本添加中英文翻译 - 修复不准确的翻译内容和 HTML 标签格式错误 - 更新所有 Pug 模板文件以使用新的 i18n 键名 - 新增登录页面"记住我"、USB 连接确认等功能的多语言支持 - 统一翻译键命名规范,提升代码可维护性
This commit is contained in:
@@ -51,12 +51,12 @@
|
||||
<div class="start-box">
|
||||
<div class="start"><a style="display:inline-block; margin-top:4px; color:#5c90bc; text-decoration:none" href="../" i18n="index"> ← [ One-KVM Index ]</a>
|
||||
<hr>
|
||||
<p class="text" i18n="vnc_text1">This PiKVM device has running <b>kvmd-vnc</b> daemon and provides VNC access to the server.</p>
|
||||
<p class="text" i18n="vnc_text2"><b>WARNING!</b> We strongly don't recommend you to use VNC in untrusted networks without
|
||||
<p class="text" i18n="vnc_daemon_running">This PiKVM device has running <b>kvmd-vnc</b> daemon and provides VNC access to the server.</p>
|
||||
<p class="text" i18n="vnc_security_warning"><b>WARNING!</b> We strongly don't recommend you to use VNC in untrusted networks without
|
||||
enabled X.509 or TLS encryption. Otherwise your passwords are transmitted in a plain text
|
||||
over the network.
|
||||
</p>
|
||||
<p class="text" i18n="vnc_text3">
|
||||
<p class="text" i18n="vnc_client_requirements">
|
||||
Your VNC client must support Tight JPEG compression and password authentication.
|
||||
<a href="https://tigervnc.org">TigerVNC</a> is a good choice.
|
||||
On Linux, this client will most likely be available for installation from the repository.
|
||||
|
||||
@@ -9,13 +9,13 @@ append vars
|
||||
index_link = true
|
||||
|
||||
block start
|
||||
p.text(i18n="vnc_text1")
|
||||
p.text(i18n="vnc_daemon_running")
|
||||
| This PiKVM device has running #[b kvmd-vnc] daemon and provides VNC access to the server.
|
||||
p.text(i18n="vnc_text2")
|
||||
p.text(i18n="vnc_security_warning")
|
||||
| #[b WARNING!] We strongly don't recommend you to use VNC in untrusted networks without
|
||||
| enabled X.509 or TLS encryption. Otherwise your passwords are transmitted in a plain text
|
||||
| over the network.
|
||||
p.text(i18n="vnc_text3")
|
||||
p.text(i18n="vnc_client_requirements")
|
||||
| Your VNC client must support Tight JPEG compression and password authentication.
|
||||
| #[a(href="https://tigervnc.org") TigerVNC] is a good choice.
|
||||
| On Linux, this client will most likely be available for installation from the repository.
|
||||
|
||||
Reference in New Issue
Block a user