diff options
| author | Tim Graham <timograham@gmail.com> | 2013-07-04 05:44:22 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-07-04 05:45:34 -0400 |
| commit | 9c501e6638dce82b579fc769c52664246a336371 (patch) | |
| tree | ddbfe8447a145462ea4bd527b4f0dce65035b8fe | |
| parent | 583f340d7dd52c6182530fd4ca798d01c4d93609 (diff) | |
[1.5.x] Fixed #20690 -- Mentioned LOCALE_PATHS earlier in translation docs.
Thanks rene@ for the suggestion.
Backport of 231e31c690 from master.
| -rw-r--r-- | docs/topics/i18n/translation.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index bb38c91966..3a315a8c11 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -1203,9 +1203,11 @@ The script should be run from one of two places: * The root directory of your Django app. The script runs over your project source tree or your application source tree -and pulls out all strings marked for translation. It creates (or updates) a -message file in the directory ``locale/LANG/LC_MESSAGES``. In the ``de`` -example, the file will be ``locale/de/LC_MESSAGES/django.po``. +and pulls out all strings marked for translation (see +:ref:`how-django-discovers-translations` and be sure :setting:`LOCALE_PATHS` +is configured correctly). It creates (or updates) a message file in the +directory ``locale/LANG/LC_MESSAGES``. In the ``de`` example, the file will be +``locale/de/LC_MESSAGES/django.po``. By default :djadmin:`django-admin.py makemessages <makemessages>` examines every file that has the ``.html`` or ``.txt`` file extension. In case you want to |
