aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/util.py')
-rw-r--r--mediagoblin/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/util.py b/mediagoblin/util.py
index 8c6ec6cc..1f568ed3 100644
--- a/mediagoblin/util.py
+++ b/mediagoblin/util.py
@@ -248,8 +248,8 @@ def get_locale_from_request(request):
accept_lang_matches = request.accept_language.best_matches()
# Your routing can explicitly specify a target language
- if request.matchdict.has_key('target_lang'):
- target_lang = request.matchdict['target_lang']
+ if request.matchdict.has_key('locale'):
+ target_lang = request.matchdict['locale']
elif request.session.has_key('target_lang'):
target_lang = request.session['target_lang']
# Pull the first acceptable language