]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
Properly detect the system's locale
authorMicah Lee <micah@micahflee.com>
Fri, 14 Sep 2018 22:00:41 +0000 (15:00 -0700)
committerMicah Lee <micah@micahflee.com>
Fri, 14 Sep 2018 22:00:41 +0000 (15:00 -0700)
torbrowser_launcher/common.py

index f199c2bf769e5c0eebdeac733ed1257ef2d10e35..0bfd65402c822682f3e44ea2f985b421683c67c5 100644 (file)
@@ -73,7 +73,7 @@ class Common(object):
 
         # figure out the language
         available_languages = ['en-US', 'ar', 'de', 'es-ES', 'fa', 'fr', 'it', 'ko', 'nl', 'pl', 'pt-PT', 'ru', 'vi', 'zh-CN']
-        default_locale = locale.getlocale(locale.LC_MESSAGES)[0]
+        default_locale = locale.getlocale()[0]
         if default_locale is None:
             self.language = 'en-US'
         else: