diff options
| author | Simon Meers <simon@simonmeers.com> | 2011-04-28 00:20:10 +0000 |
|---|---|---|
| committer | Simon Meers <simon@simonmeers.com> | 2011-04-28 00:20:10 +0000 |
| commit | 6d98cda03cc759fb1d60b15684dc7b969abf5477 (patch) | |
| tree | 86de3f89c8880f5e49b51cc9e156c6106d2016a0 /docs/ref | |
| parent | 2706fdbc87037976c3165beb5b9b73e000ff479b (diff) | |
Fixed #15830 -- Add documentation regarding localflavor i18n. Thanks framos.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/localflavor.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt index f27f57c8b0..828f2e0a79 100644 --- a/docs/ref/contrib/localflavor.txt +++ b/docs/ref/contrib/localflavor.txt @@ -127,6 +127,17 @@ Here's an example of how to use them:: .. _United States of America: `United States of America (us)`_ .. _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 ============== |
