From c88a29e85cc87451b3fd3a8cca97bd50e094e987 Mon Sep 17 00:00:00 2001 From: Nathan Shaaban <86252985+ctrlaltf24@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:10:26 -0800 Subject: [PATCH] fix: pass LANG through to wine Allows both Logos' MSI installer and the product to default to other languages if supplied --- ou_dedetai/wine.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ou_dedetai/wine.py b/ou_dedetai/wine.py index 844b1d83..24b7c79a 100644 --- a/ou_dedetai/wine.py +++ b/ou_dedetai/wine.py @@ -584,6 +584,10 @@ def get_wine_env(): # if config.LOG_LEVEL > logging.INFO: # wine_env['WINETRICKS_SUPER_QUIET'] = "1" + locale = os.getenv("LANG") + if locale: + wine_env["LANG"] = locale + # Config file takes precedence over the above variables. cfg = config.get_config_file_dict(config.CONFIG_FILE) if cfg is not None: