diff options
author | Shaun McCance <shaunm@redhat.com> | 2018-11-08 19:01:43 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@redhat.com> | 2018-11-08 19:01:43 -0500 |
commit | bc5724ed98eb591d4b82dff1b4b47ed77ec47eda (patch) | |
tree | 0576099e3f406ae4d4de98ad6c730c0076b476d0 | |
parent | 39000db89b4d376af34fd4499743ac0fa5d7cd90 (diff) | |
download | itstool-bc5724ed98eb591d4b82dff1b4b47ed77ec47eda.tar.gz |
Apply ITS files passed with -i in --join mode
Fixes https://github.com/itstool/itstool/issues/34
-rwxr-xr-x | itstool.in | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1635,6 +1635,9 @@ if __name__ == '__main__': messages = MessageList() doc = Document(opts.join, messages) doc.apply_its_rules(not(opts.nobuiltins), params=params) + if opts.itsfile is not None: + for itsfile in opts.itsfile: + doc.apply_its_file(itsfile, params=params) doc.join_translations(translations, strict=opts.strict) serialized = doc._doc.serialize('utf-8') if PY3: |