set_language(request) [source]
As a convenience, Django comes with a view, django.views.i18n.set_language(), that sets a user’s language preference and redirects to a given URL or, by default, back to the previous page.
Activate this view by adding the following line to your URLconf:
url(r'^i18n/', include('django.conf.urls.i18n')),
(Note that this example makes the view available at /i18n/setlang/.)
Warning Make sure that you don’t include the above URL within i18n_patterns() - it needs t