diff options
| author | Simon Meers <simon@simonmeers.com> | 2012-08-02 21:13:22 +1000 |
|---|---|---|
| committer | Simon Meers <simon@simonmeers.com> | 2012-08-02 21:16:30 +1000 |
| commit | 68fd7f56e18df609561f8c82f247eb0c4cac2f83 (patch) | |
| tree | 5eee451e75bed028ec42a6f2c9e8e106aff8d1b3 /docs | |
| parent | a276bdebb2e8ef4619d0cb9a02b0b9f4f73ee998 (diff) | |
[1.4.x] Fixed #18472 - Added warning regarding set_language / i18n_patterns.
Backport of d7816c563b58ed53d49956321d549a16e2b2ebc0 from master.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/translation.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 6bb6a0c5e4..48a6d6277e 100644 --- a/docs/topics/i18n/translation.txt +++ b/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 |
