Django

Code

Ticket #1707 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

LocaleMiddleware should set HTTP 'Content-Language' header

Reported by: ubernostrum Assigned to: adrian
Milestone: Component: Admin interface
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Summary says it all, really. Not everything Django serves will be HTML or XML with a 'lang' or 'xml:lang' attribute (and not all HTML will have an 'html' tag to hang the 'lang' attribute on), so it'd be nice to send a 'Content-Language' header with the language code of the translation Django used for the response.

Attachments

locale.diff (404 bytes) - added by ubernostrum on 04/27/06 16:44:16.
This should do it

Change History

04/27/06 16:44:16 changed by ubernostrum

  • attachment locale.diff added.

This should do it

05/04/06 22:19:18 changed by adrian

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

(In [2843]) Fixed #1707 -- LocaleMiddleware? now sets Content-Language header. Thanks, ubernostrum


Add/Change #1707 (LocaleMiddleware should set HTTP 'Content-Language' header)




Change Properties
Action