Skip to content

Commit

Permalink
Fix issue with detecting language (fixes #220)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahflee committed Mar 1, 2016
1 parent bf4a940 commit 7c89672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torbrowser_launcher/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def discover_arch_lang(self):

# 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:
Expand Down

0 comments on commit 7c89672

Please sign in to comment.