Ignore po headers

This commit is contained in:
Michal Čihař 2012-02-28 10:27:29 +01:00
parent f6bd455a2e
commit 3936780671

View File

@ -189,6 +189,8 @@ 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():
continue
newunit = Unit.objects.update_from_unit(self, unit) newunit = Unit.objects.update_from_unit(self, unit)
try: try:
oldunits.remove(newunit.id) oldunits.remove(newunit.id)