Ignore po headers
This commit is contained in:
parent
f6bd455a2e
commit
3936780671
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user