Opened 10 years ago

Closed 10 years ago

Last modified 3 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: UI/UX:

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 10 years ago.
This should do it

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by James Bennett

Attachment: locale.diff added

This should do it

comment:1 Changed 10 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

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

comment:2 Changed 3 years ago by Ramiro Morales <cramm0@…>

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