From 376e6ef296299570ed3e09fca50536bbbf48328a Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 12 May 2011 23:17:53 -0500 Subject: [PATCH] locale rather than target_lang in the get parameters --- mediagoblin/util.py | 4 ++-- 1 file 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