[Pkg-privacy-commits] [torbrowser-launcher] 03/07: Fix issue with detecting language (fixes #220)

Holger Levsen holger at moszumanska.debian.org
Tue Mar 1 16:05:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch debian/proposed
in repository torbrowser-launcher.

commit e203bedcf98cf56eb1cfb721945240e6b332659f
Author: Micah Lee <micah at micahflee.com>
Date:   Tue Mar 1 13:14:15 2016 +0100

    Fix issue with detecting language (fixes #220)
---
 torbrowser_launcher/common.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/torbrowser_launcher/common.py b/torbrowser_launcher/common.py
index 74c4ddf..1eddb54 100644
--- a/torbrowser_launcher/common.py
+++ b/torbrowser_launcher/common.py
@@ -71,7 +71,7 @@ class Common:
 
         # 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.getdefaultlocale()[0]
+        default_locale = locale.getlocale(locale.LC_MESSAGES)[0]
         if default_locale is None:
             self.language = 'en-US'
         else:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list