summaryrefslogtreecommitdiff
path: root/django/middleware/locale.py
AgeCommit message (Expand)Author
2023-05-02Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n pa...Mariusz Felisiak
2022-10-13Fixed #34069 -- Made LocaleMiddleware respect language from requests when i18...Sergio
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-01Fixed #32768 -- Added Vary header when redirecting to prefixed i18n pattern.Alex Hayward
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-05-04Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and c...Adam Johnson
2017-11-14Fixed #28795 -- Removed 'not in' checks and used dict.setdefault().Дилян Палаузов
2017-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2016-11-29Fixed #27402 -- Fixed incorrect LocaleMiddleware redirects with prefix_defaul...Krzysztof Urbaniak
2016-06-17Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware exception...Carl Meyer
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-03-10Refs #25933 -- Fixed i18n_patterns() prefix_default_language=False with HTTP_...Krzysztof Urbaniak
2016-03-08Fixed #25933 -- Allowed an unprefixed default language in i18n_patterns().Krzysztof Urbaniak
2016-03-03Fixed #26295 -- Allowed using i18n_patterns() in any root URLconf.Simon Charette
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
2015-03-26Fixed #19910 -- Added slash to i18n redirect if APPEND_SLASH is set.Bas Peschier
2015-03-18Fixed #23960 -- Removed http.fix_location_headerClaude Paroz
2015-03-02Fixed #24360 -- Delayed internal LocaleMiddleware variable initializationClaude Paroz
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-08-14Fixed #21579 -- Made LocaleMiddleware respect script prefix.Tim Graham
2014-02-26Fixed #21389 -- Accept most valid language codesBouke Haarsma
2013-12-12Fixed #21473 -- Limited language preservation to logoutLudwik Trammer
2013-10-22Fixed #5789 -- Changed LocaleMiddleware session variable to '_language'.Bouke Haarsma
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-15Fixed #7603 -- Added a 'scheme' property to the HttpRequest objectUnai Zalakain
2013-10-03Fixed #19277 -- Added LocaleMiddleware.response_redirect_classEmil Stenström
2013-08-04Deprecated SortedDict (replaced with collections.OrderedDict)Curtis Maloney
2013-05-26Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales
2013-05-25Fixed #14825 -- LocaleMiddleware keeps languageVlastimil Zíma
2013-05-19Fixed #11915: generic Accept-Language matches country-specific variantsŁukasz Langa
2013-02-28Fixed #5241 -- Kept active transalation in LocaleMiddleware.process_response.Aymeric Augustin
2013-02-23Fixes #17866: Vary: Accept-Language header when language prefix usedŁukasz Langa
2013-01-11Fixed #19488 -- Made i18n_patterns redirect work with non-slash-ending pathsClaude Paroz
2012-03-02Fixed #17817 -- Modified LocalMiddleware to use full URLs when redirecting to...Jannis Leidel
2012-03-02Fixed #17734 -- Made sure to only redirect translated URLs if they can actual...Jannis Leidel
2012-02-18Fixed #17720 -- Stopped the LocaleMiddleware from overeagerly using the reque...Jannis Leidel
2011-06-15Fixed #11585 -- Added ability to translate and prefix URL patterns with a lan...Jannis Leidel
2008-08-09Fixed #8121 -- Don't override the Content-Language HTTP header in the localeMalcolm Tredinnick
2006-06-08Fixed #2109 -- Convert old-style classes to new-style classes throughout Djan...Adrian Holovaty
2006-05-05Fixed #1707 -- LocaleMiddleware now sets Content-Language header. Thanks, ube...Adrian Holovaty
2005-11-04Merged i18n branch into the trunk! Fixes #65, and perhaps some others. NB: th...Jacob Kaplan-Moss