diff options
| author | Dani Fornons <fornons@gmail.com> | 2025-10-03 12:20:28 +0200 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-10-03 15:18:00 -0400 |
| commit | 2d2e1a6a9dbfe0cba58a4d2486c51fccdb501d55 (patch) | |
| tree | 8dadcab1daeab4a1301f39de2438b93800b708d2 /docs | |
| parent | 41bcb54bff9c90b05201881c0850f4ef938e2b55 (diff) | |
[5.2.x] Fixed #36636, Refs #15902 -- Removed session-based storage reference from set_language() docs.
Backport of 2514857e3fae831106832cca8823237801cf2cad from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/translation.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index eacf2a3234..faeccbaecf 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -1881,10 +1881,9 @@ Activate this view by adding the following line to your URLconf:: 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. It also saves the language choice in a -cookie that is named ``django_language`` by default. (The name can be changed -through the :setting:`LANGUAGE_COOKIE_NAME` setting.) +parameter set in request. The view saves the language choice in a cookie that +is named ``django_language`` by default. (The name can be changed through the +:setting:`LANGUAGE_COOKIE_NAME` setting.) After setting the language choice, Django looks for a ``next`` parameter in the ``POST`` or ``GET`` data. If that is found and Django considers it to be a safe |
