Opened 17 years ago

Closed 16 years ago

#5603 closed (fixed)

[patch] make language_cookie_name customizable

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

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 17 years ago.
patch: add LANGUAGE_COOKIE_NAME
language_cookie_name_docs.diff (2.1 KB ) - added by moe 16 years ago.
docs patch

Download all attachments as: .zip

Change History (5)

by moe, 17 years ago

Attachment: language_cookie_name.diff added

patch: add LANGUAGE_COOKIE_NAME

comment:1 by Malcolm Tredinnick, 17 years ago

Needs documentation: set
Triage Stage: UnreviewedAccepted

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.

by moe, 16 years ago

docs patch

comment:2 by anonymous, 16 years ago

Needs documentation: unset

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

comment:3 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

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

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