[Pkg-privacy-commits] [torbrowser-launcher] 04/08: Fix issue with detecting language (fixes #220)
Holger Levsen
holger at moszumanska.debian.org
Tue Mar 1 15:43:03 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 7c896725304574052f3320d253c9c17c9794cd57
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