From 3936780671fa6710bc3e9f5c6952f9d3c9daadf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 28 Feb 2012 10:27:29 +0100 Subject: [PATCH] Ignore po headers --- trans/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trans/models.py b/trans/models.py index d9c9b6dc7..83061e6d2 100644 --- a/trans/models.py +++ b/trans/models.py @@ -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)