translations for dp_priv

This commit is contained in:
Rick Lan
2024-06-28 13:38:10 +08:00
parent 31067dbbd8
commit 33d8c08699
+2 -1
View File
@@ -5,6 +5,7 @@ import os
from openpilot.common.basedir import BASEDIR
DP_UI_DIR = os.path.join(BASEDIR, "dp_priv")
UI_DIR = os.path.join(BASEDIR, "selfdrive", "ui")
TRANSLATIONS_DIR = os.path.join(UI_DIR, "translations")
LANGUAGES_FILE = os.path.join(TRANSLATIONS_DIR, "languages.json")
@@ -33,7 +34,7 @@ def update_translations(vanish: bool = False, translation_files: None | list[str
for file in translation_files:
tr_file = os.path.join(translations_dir, f"{file}.ts")
args = f"lupdate -locations none -recursive {UI_DIR} -ts {tr_file} -I {BASEDIR}"
args = f"lupdate -locations none -recursive {UI_DIR} {DP_UI_DIR} -ts {tr_file} -I {BASEDIR}"
if vanish:
args += " -no-obsolete"
if file in PLURAL_ONLY: