Commit 39367806 authored by Michal Čihař's avatar Michal Čihař

Ignore po headers

parent f6bd455a
......@@ -189,6 +189,8 @@ 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():
continue
newunit = Unit.objects.update_from_unit(self, unit)
try:
oldunits.remove(newunit.id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment