File translate-toolkit-2.2.0-po2txt-obsolete.diff of Package translate-toolkit
From b5593a9edd6a97e98224e8fa54576b3b70e031ae Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Tue, 27 Jun 2017 12:44:10 +0200
Subject: [PATCH] Skip obsolete units in po2txt
---
translate/convert/po2txt.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/translate/convert/po2txt.py b/translate/convert/po2txt.py
index 12ef394c..3ee39284 100755
--- a/translate/convert/po2txt.py
+++ b/translate/convert/po2txt.py
@@ -51,6 +51,8 @@ class po2txt(object):
for unit in inputstore.units:
if unit.isheader():
continue
+ if unit.isobsolete():
+ continue
if unit.istranslated() or (includefuzzy and unit.isfuzzy()):
txtresult += self.wrapmessage(unit.target) + "\n\n"
else:
--
2.13.0