From 0d040564d61d5f784469a36eaa6b2c1761e84c9c Mon Sep 17 00:00:00 2001 From: Benedikt Breinbauer Date: Fri, 21 Aug 2015 15:25:48 +0200 Subject: [PATCH] Fix LocaleMiddleware path in i18n docs --- docs/advanced_topics/i18n/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced_topics/i18n/index.rst b/docs/advanced_topics/i18n/index.rst index dd7b30021..9e5130caf 100644 --- a/docs/advanced_topics/i18n/index.rst +++ b/docs/advanced_topics/i18n/index.rst @@ -43,14 +43,14 @@ Enabling multiple language support Firstly, make sure the `USE_I18N `_ Django setting is set to ``True``. -To enable multi-language support, add ``django.middleware.i18n.LocaleMiddleware`` to your ``MIDDLEWARE_CLASSES``: +To enable multi-language support, add ``django.middleware.locale.LocaleMiddleware`` to your ``MIDDLEWARE_CLASSES``: .. code-block:: python MIDDLEWARE_CLASSES = ( ... - 'django.middleware.i18n.LocaleMiddleware', + 'django.middleware.locale.LocaleMiddleware', ) This middleware class looks at the users browser language and sets the `language of the site accordingly `_.