From 59bde45949c9e62bf0538e33a6599d4a5c148681 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 18 May 2026 00:22:18 +0900 Subject: [PATCH 1/2] fix: LC_ALL handling --- docs/source/locale.rst | 2 +- dzgui/util/localize.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/source/locale.rst b/docs/source/locale.rst index 7a981ac..a7944e8 100644 --- a/docs/source/locale.rst +++ b/docs/source/locale.rst @@ -7,6 +7,6 @@ This is used for thousands separators in long numbers and decimal separators in If you wish to use a specific regional numbering preference while retaining a different base system language (e.g., English language with German-style numbering), pass the desired locale as a variable before launching DZGUI: -``LC_NUMERIC=de_DE.UTF-8 ./dzgui`` +``LC_ALL=de_DE.UTF-8 ./dzgui`` If you intend to use this frequently, you could wrap the above in a script or alias. diff --git a/dzgui/util/localize.py b/dzgui/util/localize.py index fd4b5c6..2e514f6 100644 --- a/dzgui/util/localize.py +++ b/dzgui/util/localize.py @@ -1,4 +1,3 @@ -import os import locale @@ -13,5 +12,3 @@ def number(num: int | float) -> str: def set_locale() -> None: locale.setlocale(locale.LC_ALL, "") - user_loc = loc if (loc := os.getenv("LC_CTYPE")) else "en_US.UTF-8" - locale.setlocale(locale.LC_NUMERIC, user_loc) From 83629c7c8e8cb69e94e66d78acd48e1dc90f1ff4 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 18 May 2026 00:23:13 +0900 Subject: [PATCH 2/2] chore: add return type annotation --- dzgui/views/dialogs/wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzgui/views/dialogs/wizard.py b/dzgui/views/dialogs/wizard.py index 1c118cb..598a551 100644 --- a/dzgui/views/dialogs/wizard.py +++ b/dzgui/views/dialogs/wizard.py @@ -236,7 +236,7 @@ class SteamValidationPage(APIValidationPage): class IntroductionPage(ScrolledWizardPage): - def __init__(self): + def __init__(self) -> None: super().__init__( enum=PageNum.INTRO, heading=f"Welcome to {APP_NAME}!",