summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-09-08 06:56:07 -0400
committerTim Graham <timograham@gmail.com>2012-09-08 06:56:07 -0400
commitb7d3b057f32ed6aa7ee0941e1f0dec9d3e9223a3 (patch)
tree4e51579f267ec036c6fc5c8a04138851ac1824cd /docs
parentb036baa9902395cf913e26bcc6d5490f562e9a40 (diff)
Fixed #18365 - Added a reminder of the context processor required for the set_language view.
Thanks Nick Martini for the patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/translation.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index 9bd53da2b9..a7f48fe1fd 100644
--- a/docs/topics/i18n/translation.txt
+++ b/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')),