Do not include obsolete units

This commit is contained in:
Michal Čihař 2012-02-28 13:11:07 +01:00
parent 846189dbdc
commit 6568c25472

View File

@ -198,7 +198,7 @@ class Translation(models.Model):
# Load po file
store = factory.getobject(os.path.join(self.subproject.get_path(), self.filename))
for unit in store.units:
if unit.isheader():
if unit.isheader() or unit.isobsolete():
continue
newunit = Unit.objects.update_from_unit(self, unit)
try: