Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.4.X] Fixed #17183 - Added a note regarding LocaleMiddleware at the…

… top of the i18n docs. Thanks krzysiumed for the patch.

Backport of b1f18e9 from master
  • Loading branch information...
commit e4b7e7d86deb1303997d6c3b893c76ead2d6d46a 1 parent 01b0231
Tim Graham timgraham authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 docs/topics/i18n/translation.txt
7 docs/topics/i18n/translation.txt
View
@@ -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
====================================
Please sign in to comment.
Something went wrong with that request. Please try again.