summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-12-26 14:33:47 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-12-26 14:45:13 +0100
commite2ec7b47b3acb0338d971942ca7ffd36c2a4d8f4 (patch)
tree63ae7547717b84cd70026d00879f5dec58fc3b98 /docs
parent4500d3522defd7df869756e8ee2c876a747a8fa9 (diff)
downloaddjango-e2ec7b47b3acb0338d971942ca7ffd36c2a4d8f4.tar.gz
Updated documentation on localflavor translations
to account for the removal of django.contrib.localflavor in 1.6. Refs #19482.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/localflavor.txt17
1 files changed, 7 insertions, 10 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt
index 84569feebe..7c2e56451d 100644
--- a/docs/ref/contrib/localflavor.txt
+++ b/docs/ref/contrib/localflavor.txt
@@ -142,13 +142,10 @@ default formats. Here's an example of how to use them::
class MyForm(forms.Form):
my_date_field = generic.forms.DateField()
-Internationalization of localflavor
-===================================
-
-Localflavor has its own catalog of translations, in the directory
-``django/contrib/localflavor/locale``, and it's not loaded automatically like
-Django's general catalog in ``django/conf/locale``. If you want localflavor's
-texts to be translated, like form fields error messages, you must include
-:mod:`django.contrib.localflavor` in the :setting:`INSTALLED_APPS` setting, so
-the internationalization system can find the catalog, as explained in
-:ref:`how-django-discovers-translations`.
+Internationalization of localflavors
+====================================
+
+To activate translations for a ``localflavor`` application, you must include
+the application's name (e.g. ``django_localflavor_jp``) in the
+:setting:`INSTALLED_APPS` setting, so the internationalization system can find
+the catalog, as explained in :ref:`how-django-discovers-translations`.