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:
Christopher Allan Webber 2012-12-01 19:36:52 -06:00
parent d53ca5e506
commit e4e7fbeeaa

View File

@ -89,7 +89,8 @@ def get_locale_from_request(request):
# the most preferred, or fall back to 'en' immediately.
target_lang = request.accept_languages.best_match(
mg_globals.available_locales) or 'en'
return locale_to_lower_upper(target_lang)
return locale_to_lower_upper(target_lang)
SETUP_GETTEXTS = {}