Permalink
Browse files

Fixed #18365 - Added a reminder of the context processor required for…

… the set_language view.

Thanks Nick Martini for the patch.
  • Loading branch information...
1 parent b036baa commit b7d3b057f32ed6aa7ee0941e1f0dec9d3e9223a3 @timgraham timgraham committed Sep 8, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/topics/i18n/translation.txt
View
5 docs/topics/i18n/translation.txt
@@ -1251,6 +1251,11 @@ As a convenience, Django comes with a view, :func:`django.views.i18n.set_languag
that sets a user's language preference and redirects to a given URL or, by default,
back to the previous page.
+Make sure that the following item is in your
+:setting:`TEMPLATE_CONTEXT_PROCESSORS` list in your settings file::
+
+ 'django.core.context_processors.i18n'
+
Activate this view by adding the following line to your URLconf::
(r'^i18n/', include('django.conf.urls.i18n')),

0 comments on commit b7d3b05

Please sign in to comment.