Commit bc06fb3b authored by Ramon Buldó's avatar Ramon Buldó
parent 9878b0a1
......@@ -20,9 +20,12 @@ DEFAULT_LANGUAGES += ['en_US']
# Try to get the languages from the default locale
languages = []
lc, encoding = locale.getdefaultlocale()
if lc:
languages = [lc]
try:
lc, encoding = locale.getdefaultlocale()
if lc:
languages = [lc]
except ValueError:
pass
# Concat all languages (env + default locale),
# and here we have the languages and location of the translations
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment