mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-11 16:50:28 +08:00
fix: 修复视频方向设置的多语言支持
- 在 navbar-system.pug 中为 video_orientation 添加 i18n 属性 - 修复 video_mode 的多语言显示问题 - 更新 menu_radio_td2 mixin 支持 i18n 属性传递
This commit is contained in:
parent
d411affca4
commit
f80e063495
@ -237,7 +237,7 @@
|
||||
<td class="value-number" id="stream-h264-gop-value"></td>
|
||||
</tr>
|
||||
<tr class="feature-disabled" id="stream-mode">
|
||||
<td><a target="_blank" href="https://docs.pikvm.org/webrtc" i18n="video_mode">Video mode</a>:
|
||||
<td i18n="video_mode"><a target="_blank" href="https://docs.pikvm.org/webrtc">Video mode</a>:
|
||||
</td>
|
||||
<td>
|
||||
<div class="radio-box">
|
||||
@ -251,7 +251,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="feature-disabled" id="stream-orient">
|
||||
<td>Orientation:
|
||||
<td i18n="video_orientation">Orientation:
|
||||
</td>
|
||||
<td>
|
||||
<div class="radio-box">
|
||||
|
||||
@ -54,7 +54,7 @@ li.right#system-dropdown
|
||||
{title: "WebRTC<br>H.264", value: "janus"},
|
||||
{title: "Direct<br>H.264", value: "media"},
|
||||
{title: "Legacy<br>MJPEG", value: "mjpeg", checked: true},
|
||||
], "video_mode") #[a(target="_blank" href="https://docs.pikvm.org/webrtc" i18n="video_mode") Video mode]:
|
||||
], "video_mode") #[a(target="_blank" href="https://docs.pikvm.org/webrtc") Video mode]:
|
||||
tr.feature-disabled#stream-orient
|
||||
+menu_radio_td2("stream-orient-radio", [
|
||||
{title: "Default", value: "0", checked: true},
|
||||
|
||||
@ -50,7 +50,7 @@ mixin menu_switch_table(id, title, enabled, checked, i18nid)
|
||||
|
||||
|
||||
mixin menu_radio_td2(name, items, i18nid)
|
||||
td
|
||||
td(i18n=i18nid)
|
||||
block
|
||||
td
|
||||
.radio-box
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user