Skip to content

Commit

Permalink
Merge pull request #14 from jc01rho-openpilot-BoltEV2019-KoKr/FrogPil…
Browse files Browse the repository at this point in the history
…ot_boltpilot

fixed : for translation in frogpilot/ui, applies lupdate to FROG_UI_DIR
  • Loading branch information
geniuth2 authored Sep 6, 2024
2 parents ec1794b + 9ce14a8 commit 9a68e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/ui/update_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from openpilot.common.basedir import BASEDIR

UI_DIR = os.path.join(BASEDIR, "selfdrive", "ui")
FROG_UI_DIR = os.path.join(BASEDIR, "selfdrive", "frogpilot", "ui")
TRANSLATIONS_DIR = os.path.join(UI_DIR, "translations")
LANGUAGES_FILE = os.path.join(TRANSLATIONS_DIR, "languages.json")
TRANSLATIONS_INCLUDE_FILE = os.path.join(TRANSLATIONS_DIR, "alerts_generated.h")
Expand Down Expand Up @@ -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} {FROG_UI_DIR} -ts {tr_file} -I {BASEDIR}"
if vanish:
args += " -no-obsolete"
if file in PLURAL_ONLY:
Expand Down

0 comments on commit 9a68e0d

Please sign in to comment.