Better check for translatable items

This commit is contained in:
Michal Čihař 2012-02-28 13:20:53 +01:00
parent 3c9a61f3bb
commit 67dd3c4304

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() or unit.isobsolete():
if unit.istranslatable():
continue
newunit = Unit.objects.update_from_unit(self, unit)
try: