forked from I2P_Developers/i2p.www
Guess request language from supported languages only
This commit is contained in:
@@ -67,7 +67,7 @@ def get_locale():
|
||||
return g.lang
|
||||
# otherwise try to guess the language from the user accept
|
||||
# header the browser transmits. The best match wins.
|
||||
return request.accept_languages.best_match(['en', 'es', 'zh', 'de', 'fr', 'it', 'nl', 'ru', 'sv', 'cs', 'ar'])
|
||||
return request.accept_languages.best_match(SUPPORTED_LANGS)
|
||||
|
||||
|
||||
##########################
|
||||
|
Reference in New Issue
Block a user