Skip to content

Commit

Permalink
[1.3.X] Fixed #15830 -- Add documentation regarding localflavor i18n.…
Browse files Browse the repository at this point in the history
… Thanks framos.

Backport of r16109 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
DrMeers committed Apr 28, 2011
1 parent 44dbac6 commit 637cf5d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/ref/contrib/localflavor.txt
Expand Up @@ -121,6 +121,17 @@ Here's an example of how to use them::
.. _United States of America: `United States of America (us)`_ .. _United States of America: `United States of America (us)`_
.. _Uruguay: `Uruguay (uy)`_ .. _Uruguay: `Uruguay (uy)`_


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:`using-translations-in-your-own-projects`.

Adding flavors Adding flavors
============== ==============


Expand Down

0 comments on commit 637cf5d

Please sign in to comment.