Author: Andreas Bombe <aeb@debian.org>
Description: 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.

diff --git a/ankiqt/config.py b/ankiqt/config.py
index 25f8dfe..aec85c6 100644
--- a/ankiqt/config.py
+++ b/ankiqt/config.py
@@ -122,7 +122,7 @@ class Config(dict):
                 self[k] = v
         if not self['interfaceLang']:
             # guess interface and target languages
-            (lang, enc) = locale.getdefaultlocale()
+            (lang, enc) = locale.getlocale(locale.LC_MESSAGES)
             self['interfaceLang'] = lang
 
     def getDbPath(self):
