fix: DP菜单/分组标题走翻译系统 & 添加对应翻译条目
This commit is contained in:
@@ -73,7 +73,7 @@ class DragonpilotLayout(Widget):
|
||||
continue
|
||||
|
||||
title_key = f"title_{i}"
|
||||
self._toggles[title_key] = simple_item(title=f"### {section['title']} ###")
|
||||
self._toggles[title_key] = simple_item(title=f"### {tr(section['title'])} ###")
|
||||
count_after_title = len(self._toggles)
|
||||
|
||||
for setting in section.get("settings", []):
|
||||
|
||||
@@ -64,7 +64,7 @@ class SettingsLayout(Widget):
|
||||
PanelType.SOFTWARE: PanelInfo(tr_noop("Software"), SoftwareLayout()),
|
||||
PanelType.FIREHOSE: PanelInfo(tr_noop("Firehose"), FirehoseLayout()),
|
||||
PanelType.DEVELOPER: PanelInfo(tr_noop("Developer"), DeveloperLayout()),
|
||||
PanelType.DRAGONPILOT: PanelInfo("dp", DragonpilotLayout()),
|
||||
PanelType.DRAGONPILOT: PanelInfo(tr_noop("DP"), DragonpilotLayout()),
|
||||
}
|
||||
|
||||
self._font_medium = gui_app.font(FontWeight.MEDIUM)
|
||||
|
||||
@@ -15,6 +15,46 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\\n"
|
||||
|
||||
#: selfdrive/ui/layouts/settings/settings.py
|
||||
msgid "DP"
|
||||
msgstr "DP设置"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "Device"
|
||||
msgstr "设备设置"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "Lateral"
|
||||
msgstr "横向控制"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "Longitudinal"
|
||||
msgstr "纵向控制"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "UI"
|
||||
msgstr "界面显示"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "Toyota / Lexus"
|
||||
msgstr "丰田 / 雷克萨斯"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "Honda"
|
||||
msgstr "本田"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "VAG"
|
||||
msgstr "大众集团"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "Openpilot"
|
||||
msgstr "Openpilot"
|
||||
|
||||
#: dragonpilot/settings/__init__.py
|
||||
msgid "Developer"
|
||||
msgstr "开发者"
|
||||
|
||||
#: dragonpilot/settings/min-feat.dev.alert-mode.py
|
||||
msgid "Audible Alert"
|
||||
msgstr "声音提醒"
|
||||
|
||||
Reference in New Issue
Block a user