Ticket #14924: docs.patch

File docs.patch, 2.0 KB (added by Klaas van Schelven, 14 years ago)

Docs patch for the current documentation

  • docs/howto/i18n.txt

    diff -r 275034865933 docs/howto/i18n.txt
    a b  
    66
    77At runtime, Django looks for translations by following this algorithm:
    88
    9     * First, it looks for a ``locale`` directory in the application directory
    10       of the view that's being called. If it finds a translation for the
    11       selected language, the translation will be installed.
    12     * Next, it looks for a ``locale`` directory in the project directory. If it
    13       finds a translation, the translation will be installed.
     9    * First, it looks for a ``locale`` directory in the directory containing
     10      your settings file.
     11    * Second, it looks for a ``locale`` directory in the project directory.
     12    * Third, it looks for a ``locale`` directory in each of the installed apps.
    1413    * Finally, it checks the Django-provided base translation in
    1514      ``django/conf/locale``.
    1615
  • docs/topics/i18n/deployment.txt

    diff -r 275034865933 docs/topics/i18n/deployment.txt
    a b  
    178178As described in :ref:`using-translations-in-your-own-projects`,
    179179at runtime, Django looks for translations by following this algorithm:
    180180
    181     * First, it looks for a ``locale`` directory in the application directory
    182       of the view that's being called. If it finds a translation for the
    183       selected language, the translation will be installed.
    184     * Next, it looks for a ``locale`` directory in the project directory. If it
    185       finds a translation, the translation will be installed.
     181    * First, it looks for a ``locale`` directory in the directory containing
     182      your settings file.
     183    * Second, it looks for a ``locale`` directory in the project directory.
     184    * Third, it looks for a ``locale`` directory in each of the installed apps.
    186185    * Finally, it checks the Django-provided base translation in
    187186      ``django/conf/locale``.
    188187
Back to Top