#2408 closed defect (fixed)
[patch] trans_null doesn't have get_language_from_request
Description ¶
There are situations where one might want to have the USE_I18N
setting False
, but still take advantage of LocaleMiddleware
to populate the Content-Language
header of the response. Unfortunately, LocaleMiddleware
wants to do get_language_from_request
to figure out which translation to use, and trans_null
in django.utils.translation
doesn't provide a method by that name.
Adding a 'dummy' method which just spits back the default language code of the Django installation would fix this.
Change History (3)
by , 19 years ago
Attachment: | trans_null.diff added |
---|
comment:1 by , 19 years ago
Summary: | trans_null doesn't have get_language_from_request → [patch] trans_null doesn't have get_language_from_request |
---|
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch to fix this