update gettext inclusion

This commit is contained in:
egarette@silique.fr 2023-01-24 07:43:52 +01:00
parent ece7537b89
commit a16dbb60aa

View file

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