From 1345f3c5213e8aac5eb2bd99a22891e450d00465 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 12 Jul 2007 13:41:27 +0000 Subject: [PATCH] Fixed #4764 -- Added reference to Locale middleware in middleware docs. Thanks, dan@coffeecode.net. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5670 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/middleware.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/middleware.txt b/docs/middleware.txt index 0d533443d3..533f1ccede 100644 --- a/docs/middleware.txt +++ b/docs/middleware.txt @@ -116,6 +116,14 @@ not use this middleware. Anybody can spoof the value of ``HTTP_X_FORWARDED_FOR``, that means anybody can "fake" their IP address. Only use this when you can absolutely trust the value of ``HTTP_X_FORWARDED_FOR``. +django.middleware.locale.LocaleMiddleware +----------------------------------------- + +Enables language selection based on data from the request. It customizes content +for each user. See the `internationalization documentation`_. + +.. _`internationalization documentation`: ../i18n/ + django.contrib.sessions.middleware.SessionMiddleware ----------------------------------------------------