Fixing bug where not all conditions returned a language in get_locale_from_request()
Just had to change the indentation level of the last commit.
This commit is contained in:
parent
d53ca5e506
commit
e4e7fbeeaa
@ -89,7 +89,8 @@ def get_locale_from_request(request):
|
|||||||
# the most preferred, or fall back to 'en' immediately.
|
# the most preferred, or fall back to 'en' immediately.
|
||||||
target_lang = request.accept_languages.best_match(
|
target_lang = request.accept_languages.best_match(
|
||||||
mg_globals.available_locales) or 'en'
|
mg_globals.available_locales) or 'en'
|
||||||
return locale_to_lower_upper(target_lang)
|
|
||||||
|
return locale_to_lower_upper(target_lang)
|
||||||
|
|
||||||
SETUP_GETTEXTS = {}
|
SETUP_GETTEXTS = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user