[patch] trans_null doesn't have get_language_from_request
|Reported by:||James Bennett||Owned by:||hugo|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
There are situations where one might want to have the
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
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.