mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Fixed #7050 - Allow the makemessages command to optionally ignore paths when examining source code and templates for translation strings.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fef575a7f9
commit
eb26c9686b
5 changed files with 79 additions and 11 deletions
|
@ -483,6 +483,24 @@ Example usage::
|
|||
|
||||
django-admin.py makemessages --locale=de --symlinks
|
||||
|
||||
.. django-admin-option:: --ignore
|
||||
|
||||
Use the ``--ignore`` or ``-i`` option to ignore files or directories matching
|
||||
the given `glob-style pattern`_. Use multiple times to ignore more.
|
||||
|
||||
These patterns are used by default: ``'CVS'``, ``'.*'``, ``'*~'``
|
||||
|
||||
Example usage::
|
||||
|
||||
django-admin.py makemessages --locale=en_US --ignore=apps/* --ignore=secret/*.html
|
||||
|
||||
.. _`glob-style pattern`: http://docs.python.org/library/glob.html
|
||||
|
||||
.. django-admin-option:: --no-default-ignore
|
||||
|
||||
Use the ``--no-default-ignore`` option to disable the default values of
|
||||
:djadminopt:`--ignore`.
|
||||
|
||||
reset <appname appname ...>
|
||||
---------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue