Properly detect the system's locale

This commit is contained in:
Micah Lee 2018-09-14 15:00:41 -07:00
parent eb328f2abe
commit b828bdfafe
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View 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: