Ignore docs directory while creating translation strings.

Fixes: #1941.
This commit is contained in:
Umair Khan 2016-10-10 13:53:02 +05:00 committed by Tim Abbott
parent a9343a65d5
commit d7efdf050c
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ class Command(makemessages.Command):
trans_real.templatize = my_templatize
try:
ignore_patterns = options.get('ignore_patterns', [])
ignore_patterns.append('docs/*')
options['ignore_patterns'] = ignore_patterns
super(Command, self).handle(*args, **options)
finally:
trans_real.endblock_re = old_endblock_re