Ticket #15830: doc_localflavor_i18n.diff

File doc_localflavor_i18n.diff, 949 bytes (added by framos, 4 years ago)

Patch to docs/ref/contrib/localflavor.txt in r16026

  • docs/ref/contrib/localflavor.txt

     
    121121.. _United States of America: `United States of America (us)`_
    122122.. _Uruguay: `Uruguay (uy)`_
    123123
     124Internationalization of localflavor
     125===================================
     126
     127Localflavor has its own catalog of translations, in the directory
     128``django/contrib/localflavor/locale``, and it's not loaded automatically like
     129Django's general catalog in ``django/conf/locale``. If you want localflavor's
     130texts to be translated, like form fields error messages, you must include
     131:mod:`django.contrib.localflavor` in the :setting:`INSTALLED_APPS` setting, so
     132the internationalization system can find the catalog, as explained in
     133:ref:`using-translations-in-your-own-projects`.
     134
    124135Adding flavors
    125136==============
    126137
Back to Top