mirror of https://github.com/zulip/zulip.git
Ignore docs directory while creating translation strings.
Fixes: #1941.
This commit is contained in:
parent
a9343a65d5
commit
d7efdf050c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue