Opened 19 years ago

Closed 19 years ago

Last modified 11 years ago

#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)

locale.diff (404 bytes ) - added by James Bennett 19 years ago.
This should do it

Download all attachments as: .zip

Change History (3)

by James Bennett, 19 years ago

Attachment: locale.diff added

This should do it

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Ramiro Morales <cramm0@…>, 11 years ago

In 41feab3654ace895d3528493b3e14bd40113839f:

Converted tests for admin first form widget auto-focus to Selenium.

Refs #1707 and 1c0c879be3.

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