update gettext inclusion
This commit is contained in:
parent
ece7537b89
commit
a16dbb60aa
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue