From a16dbb60aa2d00d27b70373e6094591bfa6ff5f2 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 24 Jan 2023 07:43:52 +0100 Subject: [PATCH] update gettext inclusion --- tiramisu/i18n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiramisu/i18n.py b/tiramisu/i18n.py index 1f624e8..df4185b 100644 --- a/tiramisu/i18n.py +++ b/tiramisu/i18n.py @@ -45,8 +45,8 @@ def get_translation() -> str: from locale import windows_locale default_locale = windows_locale[ctypes.windll.kernel32.GetUserDefaultUILanguage()] else: - from locale import getdefaultlocale - default_locale = getdefaultlocale() + from locale import getlocale + default_locale = getlocale() if default_locale and isinstance(default_locale, tuple): if default_locale[0] is not None: user_locale = default_locale[0][:2]