projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97e4586
)
po files: allow empty lines between comments and msgid
author
Christophe Simonis
<christophe@tinyerp.com>
Wed, 15 Oct 2008 07:49:53 +0000
(09:49 +0200)
committer
Christophe Simonis
<christophe@tinyerp.com>
Wed, 15 Oct 2008 07:49:53 +0000
(09:49 +0200)
bzr revid: christophe@tinyerp.com-
20081015074953
-rx39rgezl92egybn
bin/tools/translate.py
patch
|
blob
|
history
diff --git
a/bin/tools/translate.py
b/bin/tools/translate.py
index
bedac78
..
277486f
100644
(file)
--- a/
bin/tools/translate.py
+++ b/
bin/tools/translate.py
@@
-116,6
+116,9
@@
class TinyPoFile(object):
if line.startswith('#:'):
tmp_tnrs.append( line[2:].strip().split(':') )
line = self.lines.pop(0).strip()
+ while not line:
+ # allow empty lines between comments and msgid
+ line = self.lines.pop(0).strip()
if not line.startswith('msgid'):
raise Exception("malformed file: bad line: %s" % line)
source = unquote(line[6:])