mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-10-06 23:23:22 +00:00
Properly detect the system's locale
This commit is contained in:
parent
eb328f2abe
commit
b828bdfafe
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user