Browse files

[1.4.x] Fixed #18472 - Added warning regarding set_language / i18n_pa…


Backport of d7816c5 from master.
  • Loading branch information...
DrMeers committed Aug 2, 2012
1 parent a276bde commit 68fd7f56e18df609561f8c82f247eb0c4cac2f83
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/topics/i18n/translation.txt
@@ -1249,6 +1249,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

0 comments on commit 68fd7f5

Please sign in to comment.