aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/util.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-05-12 23:17:53 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-05-12 23:17:53 -0500
commit376e6ef296299570ed3e09fca50536bbbf48328a (patch)
tree24ebb26b12513ca671fa2c7e232e40d14956c5b0 /mediagoblin/util.py
parent7acdbfd36457720789c183260424e0f78139211a (diff)
downloadmediagoblin-376e6ef296299570ed3e09fca50536bbbf48328a.tar.lz
mediagoblin-376e6ef296299570ed3e09fca50536bbbf48328a.tar.xz
mediagoblin-376e6ef296299570ed3e09fca50536bbbf48328a.zip
locale rather than target_lang in the get parameters
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