diff --git a/openerp/tools/translate.py b/openerp/tools/translate.py index 0caecdf342b..4e9ffecb3aa 100644 --- a/openerp/tools/translate.py +++ b/openerp/tools/translate.py @@ -345,6 +345,7 @@ class TinyPoFile(object): source = unquote(line[6:]) line = self.lines.pop(0).strip() if not source and self.first: + self.first = False # if the source is "" and it's the first msgid, it's the special # msgstr with the informations about the traduction and the # traductor; we skip it @@ -374,8 +375,6 @@ class TinyPoFile(object): if t == trans_type == 'code': continue self.extra_lines.append((t, n, r, source, trad, comments)) - self.first = False - if name is None: if not fuzzy: self.warn('Missing "#:" formated comment at line %d for the following source:\n\t%s',