diff options
author | Shaun McCance <shaunm@gnome.org> | 2012-03-23 10:09:55 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2012-03-23 10:09:55 -0400 |
commit | 1e0fa47194bbfcbd30e402a4897a0856a6045b73 (patch) | |
tree | f9ba0731c93edaae3f8130a152b2ebd1f9bae754 | |
parent | 80b34e2870abd08cb96f2929d8ee32acab3d89e9 (diff) | |
download | itstool-1e0fa47194bbfcbd30e402a4897a0856a6045b73.tar.gz |
Don't output external ref messages under its:translate="no"
-rwxr-xr-x | itstool.in | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -734,6 +734,15 @@ class Document (object): if self._itst_credits is not None: self._msgs.add_credits() for ext in self._itst_externals: + translate = None + node = ext[0] + while node != None: + translate = self.get_its_translate(node) + if translate is not None: + break + node = node.parent + if translate == 'no': + continue msg = Message() try: fullfile = os.path.join(os.path.dirname(self._filename), ext[1]) |