Do not include obsolete units
This commit is contained in:
parent
846189dbdc
commit
6568c25472
@ -198,7 +198,7 @@ class Translation(models.Model):
|
|||||||
# Load po file
|
# Load po file
|
||||||
store = factory.getobject(os.path.join(self.subproject.get_path(), self.filename))
|
store = factory.getobject(os.path.join(self.subproject.get_path(), self.filename))
|
||||||
for unit in store.units:
|
for unit in store.units:
|
||||||
if unit.isheader():
|
if unit.isheader() or unit.isobsolete():
|
||||||
continue
|
continue
|
||||||
newunit = Unit.objects.update_from_unit(self, unit)
|
newunit = Unit.objects.update_from_unit(self, unit)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user