Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated documentation on localflavor translations

to account for the removal of django.contrib.localflavor in 1.6.

Refs #19482.
  • Loading branch information...
commit e2ec7b47b3acb0338d971942ca7ffd36c2a4d8f4 1 parent 4500d35
@aaugustin aaugustin authored
Showing with 7 additions and 10 deletions.
  1. +7 −10 docs/ref/contrib/localflavor.txt
View
17 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`.

0 comments on commit e2ec7b4

Please sign in to comment.
Something went wrong with that request. Please try again.