From 33d8c086996556f6896f72da4232c6a1de79cbcd Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Fri, 28 Jun 2024 13:38:10 +0800 Subject: [PATCH] translations for dp_priv --- selfdrive/ui/update_translations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/update_translations.py b/selfdrive/ui/update_translations.py index 0fe0f05ac..c160cbccc 100755 --- a/selfdrive/ui/update_translations.py +++ b/selfdrive/ui/update_translations.py @@ -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: