diff options
author | Zuul <zuul@review.openstack.org> | 2018-02-05 05:03:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-02-05 05:03:02 +0000 |
commit | e855fb0668ecedd4bf0a3a4109ac65efa234fd99 (patch) | |
tree | 15122de5ebe7701c67edf017c891ff939062c924 | |
parent | d2e37c58511c84eaa4ce9742e1af70ea90c0795e (diff) | |
parent | fb6ff76eabdb9abeb64b8bc2487d0014b2f1424a (diff) | |
download | horizon-e855fb0668ecedd4bf0a3a4109ac65efa234fd99.tar.gz |
Merge "extract_messages: Specify input directory" into stable/pike
-rw-r--r-- | openstack_dashboard/management/commands/extract_messages.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openstack_dashboard/management/commands/extract_messages.py b/openstack_dashboard/management/commands/extract_messages.py index 95049e8c9..567b2962e 100644 --- a/openstack_dashboard/management/commands/extract_messages.py +++ b/openstack_dashboard/management/commands/extract_messages.py @@ -39,13 +39,14 @@ class Command(BaseCommand): def handle(self, *args, **options): cmd = ('python setup.py {quiet} extract_messages ' '-F babel-{domain}.cfg ' - '-o {module}/locale/{domain}.pot') + '--input-dirs {module} ' + '-o {potfile}') distribution = Distribution() distribution.parse_config_files(distribution.find_config_files()) quiet = '-q' if int(options['verbosity']) == 0 else '' if options['check_only']: - cmd += " ; rm {module}/locale/{domain}.pot" + cmd += " ; rm {potfile}" for module in options['module']: for domain in options['domain']: |