Opened 9 years ago

Closed 9 years ago

Last modified 20 months ago

#1707 closed enhancement (fixed)

LocaleMiddleware should set HTTP 'Content-Language' header

Reported by: ubernostrum Owned by: adrian
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 ubernostrum 9 years ago.
This should do it

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by ubernostrum

This should do it

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 20 months 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