Django

Code

Ticket #5603 (closed: fixed)

Opened 1 year ago

Last modified 8 months ago

[patch] make language_cookie_name customizable

Reported by: moe Assigned to: nobody
Milestone: Component: Internationalization
Version: SVN Keywords: language cookie name
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

language_cookie_name.diff (1.7 kB) - added by moe on 09/25/07 17:58:09.
patch: add LANGUAGE_COOKIE_NAME
language_cookie_name_docs.diff (2.1 kB) - added by moe on 11/28/07 19:41:18.
docs patch

Change History

09/25/07 17:58:09 changed by moe

  • attachment language_cookie_name.diff added.

patch: add LANGUAGE_COOKIE_NAME

10/02/07 19:59:16 changed by mtredinnick

  • needs_docs set to 1.
  • 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.

11/28/07 19:41:18 changed by moe

  • attachment language_cookie_name_docs.diff added.

docs patch

11/28/07 19:44:26 changed by anonymous

  • needs_docs deleted.

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

02/29/08 12:38:45 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #5603 ([patch] make language_cookie_name customizable)




Change Properties
Action