summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-08-16 16:13:45 -0400
committerTim Graham <timograham@gmail.com>2012-08-16 18:16:56 -0400
commite4b7e7d86deb1303997d6c3b893c76ead2d6d46a (patch)
treef9f2797e6c0a0ab1dd2049a769cbc252857b1a80 /docs/topics
parent01b02317172a5030b77a09aada11657c00398416 (diff)
[1.4.X] Fixed #17183 - Added a note regarding LocaleMiddleware at the top of the i18n docs. Thanks krzysiumed for the patch.
Backport of b1f18e95a5 from master
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/i18n/translation.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index 48a6d6277e..39f6e5ff49 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -37,6 +37,13 @@ from your :setting:`TEMPLATE_CONTEXT_PROCESSORS` setting.
controls if Django should implement format localization. See
:doc:`/topics/i18n/formatting` for more details.
+.. note::
+
+ Make sure you've activated translation for your project (the fastest way is
+ to check if :setting:`MIDDLEWARE_CLASSES` includes
+ :mod:`django.middleware.locale.LocaleMiddleware`). If you haven't yet,
+ see :ref:`how-django-discovers-language-preference`.
+
Internationalization: in Python code
====================================