From 1107ca9c9d8dcdab8b989af632ec5ba720715bf4 Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Thu, 26 Nov 2009 19:39:35 +0530 Subject: [PATCH] [FIX] tools>translate: fixed bug, missing line in merging bzr revid: hmo@tinyerp.com-20091126140935-tvmgl9bcfb90gocs --- bin/tools/translate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 57b15002a4e..604cbd53e32 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -190,6 +190,9 @@ class TinyPoFile(object): if 0 == len(self.lines): raise StopIteration() line = self.lines.pop(0).strip() + while line.startswith('#'): + if line.startswith('#~ '): + break if line.startswith('#:'): if ' ' in line[2:].strip(): for lpart in line[2:].strip().split(' '):