summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2018-11-08 19:01:43 -0500
committerShaun McCance <shaunm@redhat.com>2018-11-08 19:01:43 -0500
commitbc5724ed98eb591d4b82dff1b4b47ed77ec47eda (patch)
tree0576099e3f406ae4d4de98ad6c730c0076b476d0
parent39000db89b4d376af34fd4499743ac0fa5d7cd90 (diff)
downloaditstool-bc5724ed98eb591d4b82dff1b4b47ed77ec47eda.tar.gz
Apply ITS files passed with -i in --join mode
Fixes https://github.com/itstool/itstool/issues/34
-rwxr-xr-xitstool.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/itstool.in b/itstool.in
index b3c0033..e64cd34 100755
--- a/itstool.in
+++ b/itstool.in
@@ -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: