Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored June 19, 2011
2  django/core/management/commands/makemessages.py
@@ -356,7 +356,7 @@ def handle_noargs(self, *args, **options):
356 356
         if domain == 'djangojs':
357 357
             extensions = handle_extensions(extensions or ['js'])
358 358
         else:
359  
-            extensions = handle_extensions(extensions or ['html'])
  359
+            extensions = handle_extensions(extensions or ['html', 'txt'])
360 360
 
361 361
         if verbosity > 1:
362 362
             sys.stdout.write('examining files with the extensions: %s\n'
4  docs/ref/django-admin.txt
@@ -417,7 +417,7 @@ Example usage::
417 417
 .. django-admin-option:: --extension
418 418
 
419 419
 Use the ``--extension`` or ``-e`` option to specify a list of file extensions
420  
-to examine (default: ".html").
  420
+to examine (default: ".html", ".txt").
421 421
 
422 422
 Example usage::
423 423
 
@@ -438,7 +438,7 @@ Example usage::
438 438
 Use the ``--domain`` or ``-d`` option to change the domain of the messages files.
439 439
 Currently supported:
440 440
 
441  
-    * ``django`` for all ``*.py`` and ``*.html`` files (default)
  441
+    * ``django`` for all ``*.py``, ``*.html`` and ``*.txt`` files (default)
442 442
     * ``djangojs`` for ``*.js`` files
443 443
 
444 444
 .. django-admin-option:: --symlinks
5  docs/topics/i18n/localization.txt
@@ -84,8 +84,9 @@ message file in the directory ``locale/LANG/LC_MESSAGES``. In the ``de``
84 84
 example, the file will be ``locale/de/LC_MESSAGES/django.po``.
85 85
 
86 86
 By default ``django-admin.py makemessages`` examines every file that has the
87  
-``.html`` file extension. In case you want to override that default, use the
88  
-``--extension`` or ``-e`` option to specify the file extensions to examine::
  87
+``.html`` or ``.txt`` file extension. In case you want to override that
  88
+default, use the ``--extension`` or ``-e`` option to specify the file
  89
+extensions to examine::
89 90
 
90 91
     django-admin.py makemessages -l de -e txt
91 92
 

0 notes on commit 63f9b67

Please sign in to comment.
Something went wrong with that request. Please try again.