summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Bombe <aeb@debian.org>2024-03-04 14:36:39 +0000
committerLaurin Hagemann <laurinhg@gmx.de>2024-03-04 14:36:39 +0000
commitaa8df798f137a49906a38587f70b7ef753711bd2 (patch)
tree12c75ab927d925fac84c1fa7944650b10b707071
parent3cde3e66557c1dc65425e2bf731bceaa25c40991 (diff)
Use getlocale(LC_MESSAGES) for default interface locale
It will use LANG if LC_MESSAGES is not set and return no locale if neither is set. Using getdefaultlocale() will yield possibly undesired locales if other LC_* fields are set. Gbp-Pq: Name default-locale
-rw-r--r--aqt/profiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/aqt/profiles.py b/aqt/profiles.py
index f12b311..323a55a 100644
--- a/aqt/profiles.py
+++ b/aqt/profiles.py
@@ -373,7 +373,7 @@ please see:
d.rejected.connect(lambda: True)
# default to the system language
try:
- (lang, enc) = locale.getdefaultlocale()
+ (lang, enc) = locale.getlocale(locale.LC_MESSAGES)
except:
# fails on osx
lang = "en"