mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
translations for dp_priv
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user