#1707 closed enhancement (fixed)
LocaleMiddleware should set HTTP 'Content-Language' header
Reported by: | James Bennett | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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 (1)
Change History (3)
by , 19 years ago
Attachment: | locale.diff added |
---|
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This should do it