mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
feat: 完善 Web 界面国际化支持
- 将包含数字的无意义 i18n 键名替换为语义化名称 (如 kvm_text1 → about_title) - 为缺失多语言支持的界面文本添加中英文翻译 - 修复不准确的翻译内容和 HTML 标签格式错误 - 更新所有 Pug 模板文件以使用新的 i18n 键名 - 新增登录页面"记住我"、USB 连接确认等功能的多语言支持 - 统一翻译键命名规范,提升代码可维护性
This commit is contained in:
@@ -12,7 +12,7 @@ mixin about_tab(name, title, i18nid, checked=false)
|
||||
|
||||
.window#about-window(data-show-centered)
|
||||
.window-header
|
||||
.window-grab(i18n="kvm_text1") About
|
||||
.window-grab(i18n="about_title") About
|
||||
.window-buttons
|
||||
button.window-button-original •
|
||||
button.window-button-close #[b ×]
|
||||
@@ -47,7 +47,7 @@ mixin about_tab(name, title, i18nid, checked=false)
|
||||
pre#kvmd-meta-json No data
|
||||
|
||||
+about_tab("thanks", "Thanks", "thanks")
|
||||
span.code-comment( i18n="kvm_text2")
|
||||
span.code-comment( i18n="about_sponsors")
|
||||
| // These kind people donated money to the PiKVM project#[br]
|
||||
| // and supported the work on it. We are very grateful#[br]
|
||||
| // for their help, and memorializing their names#[br]
|
||||
@@ -57,10 +57,10 @@ mixin about_tab(name, title, i18nid, checked=false)
|
||||
| or #[a(target="_blank" href="https://paypal.me/pikvm") Paypal].
|
||||
br
|
||||
p.text.credits
|
||||
a(target="_blank" href="https://github.com/mofeng-git/One-KVM" i18n="index_text_12") One-KVM Project
|
||||
a(target="_blank" href="https://github.com/mofeng-git/One-KVM" i18n="onekvm_project_link") One-KVM Project
|
||||
| |
|
||||
a(target="_blank" href="https://one-kvm.mofeng.run" i18n="index_text_13") One-KVM Documentation
|
||||
a(target="_blank" href="https://one-kvm.mofeng.run" i18n="onekvm_documentation_link") One-KVM Documentation
|
||||
| |
|
||||
a(target="_blank" href="https://pikvm.org" i18n="index_text_10") PiKVM Project
|
||||
a(target="_blank" href="https://pikvm.org" i18n="pikvm_project_link") PiKVM Project
|
||||
| |
|
||||
a(target="_blank" href="https://docs.pikvm.org" i18n="index_text_11") Documentation
|
||||
a(target="_blank" href="https://docs.pikvm.org" i18n="pikvm_documentation_link") Documentation
|
||||
Reference in New Issue
Block a user