summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Meers <simon@simonmeers.com>2012-08-02 20:45:55 +1000
committerSimon Meers <simon@simonmeers.com>2012-08-02 20:45:55 +1000
commitd7816c563b58ed53d49956321d549a16e2b2ebc0 (patch)
tree2f470c35958637e1771e5c0689ea3bf0cd3843ce
parentc59fff707ac5cfa1f6d12e889a157b569cf2429e (diff)
Fixed #18472 - Added warning regarding set_language / i18n_patterns.
-rw-r--r--docs/topics/i18n/translation.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index c912bf9575..988948e259 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -1247,6 +1247,12 @@ Activate this view by adding the following line to your URLconf::
(Note that this example makes the view available at ``/i18n/setlang/``.)
+.. warning::
+
+ Make sure that you don't include the above URL within
+ :func:`~django.conf.urls.i18n.i18n_patterns` - it needs to be
+ language-independent itself to work correctly.
+
The view expects to be called via the ``POST`` method, with a ``language``
parameter set in request. If session support is enabled, the view
saves the language choice in the user's session. Otherwise, it saves the