Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added '.txt' to list of file extensions that the makemessages managem…

…ent command automatically scans. Refs #12202.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 63f9b6712909970693a9e509d13218856306bbd6 1 parent ac4d015
@jezdez jezdez authored
View
2  django/core/management/commands/makemessages.py
@@ -356,7 +356,7 @@ def handle_noargs(self, *args, **options):
if domain == 'djangojs':
extensions = handle_extensions(extensions or ['js'])
else:
- extensions = handle_extensions(extensions or ['html'])
+ extensions = handle_extensions(extensions or ['html', 'txt'])
if verbosity > 1:
sys.stdout.write('examining files with the extensions: %s\n'
View
4 docs/ref/django-admin.txt
@@ -417,7 +417,7 @@ Example usage::
.. django-admin-option:: --extension
Use the ``--extension`` or ``-e`` option to specify a list of file extensions
-to examine (default: ".html").
+to examine (default: ".html", ".txt").
Example usage::
@@ -438,7 +438,7 @@ Example usage::
Use the ``--domain`` or ``-d`` option to change the domain of the messages files.
Currently supported:
- * ``django`` for all ``*.py`` and ``*.html`` files (default)
+ * ``django`` for all ``*.py``, ``*.html`` and ``*.txt`` files (default)
* ``djangojs`` for ``*.js`` files
.. django-admin-option:: --symlinks
View
5 docs/topics/i18n/localization.txt
@@ -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``.
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
-``--extension`` or ``-e`` option to specify the file extensions to examine::
+``.html`` or ``.txt`` file extension. In case you want to override that
+default, use the ``--extension`` or ``-e`` option to specify the file
+extensions to examine::
django-admin.py makemessages -l de -e txt
Please sign in to comment.
Something went wrong with that request. Please try again.