Added '.txt' to list of file extensions that the makemessages management command automatically scans. Refs #12202.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ac4d015703
commit
63f9b67129
|
@ -356,7 +356,7 @@ class Command(NoArgsCommand):
|
||||||
if domain == 'djangojs':
|
if domain == 'djangojs':
|
||||||
extensions = handle_extensions(extensions or ['js'])
|
extensions = handle_extensions(extensions or ['js'])
|
||||||
else:
|
else:
|
||||||
extensions = handle_extensions(extensions or ['html'])
|
extensions = handle_extensions(extensions or ['html', 'txt'])
|
||||||
|
|
||||||
if verbosity > 1:
|
if verbosity > 1:
|
||||||
sys.stdout.write('examining files with the extensions: %s\n'
|
sys.stdout.write('examining files with the extensions: %s\n'
|
||||||
|
|
|
@ -417,7 +417,7 @@ Example usage::
|
||||||
.. django-admin-option:: --extension
|
.. django-admin-option:: --extension
|
||||||
|
|
||||||
Use the ``--extension`` or ``-e`` option to specify a list of file extensions
|
Use the ``--extension`` or ``-e`` option to specify a list of file extensions
|
||||||
to examine (default: ".html").
|
to examine (default: ".html", ".txt").
|
||||||
|
|
||||||
Example usage::
|
Example usage::
|
||||||
|
|
||||||
|
@ -438,7 +438,7 @@ Example usage::
|
||||||
Use the ``--domain`` or ``-d`` option to change the domain of the messages files.
|
Use the ``--domain`` or ``-d`` option to change the domain of the messages files.
|
||||||
Currently supported:
|
Currently supported:
|
||||||
|
|
||||||
* ``django`` for all ``*.py`` and ``*.html`` files (default)
|
* ``django`` for all ``*.py``, ``*.html`` and ``*.txt`` files (default)
|
||||||
* ``djangojs`` for ``*.js`` files
|
* ``djangojs`` for ``*.js`` files
|
||||||
|
|
||||||
.. django-admin-option:: --symlinks
|
.. django-admin-option:: --symlinks
|
||||||
|
|
|
@ -84,8 +84,9 @@ message file in the directory ``locale/LANG/LC_MESSAGES``. In the ``de``
|
||||||
example, the file will be ``locale/de/LC_MESSAGES/django.po``.
|
example, the file will be ``locale/de/LC_MESSAGES/django.po``.
|
||||||
|
|
||||||
By default ``django-admin.py makemessages`` examines every file that has the
|
By default ``django-admin.py makemessages`` examines every file that has the
|
||||||
``.html`` file extension. In case you want to override that default, use the
|
``.html`` or ``.txt`` file extension. In case you want to override that
|
||||||
``--extension`` or ``-e`` option to specify the file extensions to examine::
|
default, use the ``--extension`` or ``-e`` option to specify the file
|
||||||
|
extensions to examine::
|
||||||
|
|
||||||
django-admin.py makemessages -l de -e txt
|
django-admin.py makemessages -l de -e txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue