From 8a77534d02960fc238075aff74cc50be9f20f041 Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Mon, 27 Oct 2025 22:47:41 -0700 Subject: [PATCH] fix zipapp with multilang (#36511) * fix * fix * fix * more --- release/pack.py | 2 +- selfdrive/ui/tests/test_translations.py | 4 ++-- selfdrive/ui/update_translations.py | 2 +- system/ui/lib/application.py | 5 +++-- system/ui/lib/multilang.py | 11 ++++++----- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/release/pack.py b/release/pack.py index 1cb1a47a4..92ff68fe7 100755 --- a/release/pack.py +++ b/release/pack.py @@ -12,7 +12,7 @@ from openpilot.common.basedir import BASEDIR DIRS = ['cereal', 'openpilot'] -EXTS = ['.png', '.py', '.ttf', '.capnp'] +EXTS = ['.png', '.py', '.ttf', '.capnp', '.json', '.fnt', '.mo'] INTERPRETER = '/usr/bin/env python3' diff --git a/selfdrive/ui/tests/test_translations.py b/selfdrive/ui/tests/test_translations.py index 5308a44ea..3177814f9 100644 --- a/selfdrive/ui/tests/test_translations.py +++ b/selfdrive/ui/tests/test_translations.py @@ -8,7 +8,7 @@ import requests from parameterized import parameterized_class from openpilot.system.ui.lib.multilang import TRANSLATIONS_DIR, LANGUAGES_FILE -with open(LANGUAGES_FILE) as f: +with open(str(LANGUAGES_FILE)) as f: translation_files = json.load(f) UNFINISHED_TRANSLATION_TAG = "