Opened 8 years ago

Closed 7 years ago

#5603 closed (fixed)

[patch] make language_cookie_name customizable

Reported by: moe Owned by: nobody
Component: Internationalization Version: master
Severity: Keywords: language cookie name
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

trivial patch to make the name of the language cookie customizable (LANGUAGE_COOKIE_NAME in settings.py)

changes:

  • django/utils/translation/trans_real.py
  • django/views/i18n.py
  • django/conf/global_settings.py

Attachments (2)

language_cookie_name.diff (1.7 KB) - added by moe 8 years ago.
patch: add LANGUAGE_COOKIE_NAME
language_cookie_name_docs.diff (2.1 KB) - added by moe 7 years ago.
docs patch

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by moe

patch: add LANGUAGE_COOKIE_NAME

comment:1 Changed 8 years ago by mtredinnick

  • Needs documentation set
  • Triage Stage changed from Unreviewed to Accepted

Looks like a reasonable idea, for the same reason that session cookie names needs to be customisable sometimes.

Needs some documentation before it can go in. In settings.txt, a reference to the new setting is needed. In i18n.txt, we refer to the cookie name, so a quick link to the setting would be useful.

Changed 7 years ago by moe

docs patch

comment:2 Changed 7 years ago by anonymous

  • Needs documentation unset

docs patch attached, let me know if anything else needs to be done.

comment:3 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [7185]) Fixed #5603 -- Allow customization of the language cookie name. Thanks, moe.

Note: See TracTickets for help on using tickets.
Back to Top