enable L10n detection for Marketplace

This commit is contained in:
Chris Van 2012-03-19 17:22:03 -07:00
Родитель 339b4e4046
Коммит fefb3f3e8c
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -38,11 +38,6 @@ class LocaleAndAppURLMiddleware(object):
# Find locale, app
prefixer = urlresolvers.Prefixer(request)
redirect_type = HttpResponsePermanentRedirect
if settings.MARKETPLACE:
# Force en-US until we localize Marketplace.
prefixer.locale = 'en-US'
# Use 302 redirects if these URLs are gonna change.
redirect_type = redirect
urlresolvers.set_url_prefix(prefixer)
full_path = prefixer.fix(prefixer.shortened_path)