summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2012-03-23 10:09:55 -0400
committerShaun McCance <shaunm@gnome.org>2012-03-23 10:09:55 -0400
commit1e0fa47194bbfcbd30e402a4897a0856a6045b73 (patch)
treef9ba0731c93edaae3f8130a152b2ebd1f9bae754
parent80b34e2870abd08cb96f2929d8ee32acab3d89e9 (diff)
downloaditstool-1e0fa47194bbfcbd30e402a4897a0856a6045b73.tar.gz
Don't output external ref messages under its:translate="no"
-rwxr-xr-xitstool.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/itstool.in b/itstool.in
index 4c731f5..b4d6a89 100755
--- a/itstool.in
+++ b/itstool.in
@@ -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])