Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Updated documentation on localflavor translations

to account for the deprecation of django.contrib.localflavor in 1.5.

Refs #19482.
  • Loading branch information...
commit e2396bf1220c543ee8d15c7640481889caace61d 1 parent 0c79e5e
Aymeric Augustin authored December 26, 2012

Showing 1 changed file with 11 additions and 10 deletions. Show diff stats Hide diff stats

  1. 21  docs/ref/contrib/localflavor.txt
21  docs/ref/contrib/localflavor.txt
@@ -142,13 +142,14 @@ default formats. Here's an example of how to use them::
142 142
     class MyForm(forms.Form):
143 143
         my_date_field = generic.forms.DateField()
144 144
 
145  
-Internationalization of localflavor
146  
-===================================
147  
-
148  
-Localflavor has its own catalog of translations, in the directory
149  
-``django/contrib/localflavor/locale``, and it's not loaded automatically like
150  
-Django's general catalog in ``django/conf/locale``. If you want localflavor's
151  
-texts to be translated, like form fields error messages, you must include
152  
-:mod:`django.contrib.localflavor` in the :setting:`INSTALLED_APPS` setting, so
153  
-the internationalization system can find the catalog, as explained in
154  
-:ref:`how-django-discovers-translations`.
  145
+Internationalization of localflavors
  146
+====================================
  147
+
  148
+To activate translations for a newly-created ``localflavor`` application, you
  149
+must include the application's name (e.g. ``django_localflavor_jp``) in the
  150
+:setting:`INSTALLED_APPS` setting, so the internationalization system can find
  151
+the catalog, as explained in :ref:`how-django-discovers-translations`.
  152
+
  153
+If you're still using the legacy ``localflavor`` application, you must include
  154
+:mod:`django.contrib.localflavor` in :setting:`INSTALLED_APPS` (that will
  155
+raise a ``DeprecationWarning``).

0 notes on commit e2396bf

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