Merge pull request #35 from aclist/fix/lc-all

fix: LC_ALL handling
This commit is contained in:
aclist 2026-05-18 00:23:37 +09:00 committed by GitHub
commit 4f722c4655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View File

@ -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.

View File

@ -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)

View File

@ -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}!",