bugfix with po file import
authorChristophe Simonis <christophe@tinyerp.com>
Tue, 30 Sep 2008 13:07:26 +0000 (15:07 +0200)
committerChristophe Simonis <christophe@tinyerp.com>
Tue, 30 Sep 2008 13:07:26 +0000 (15:07 +0200)
bzr revid: christophe@tinyerp.com-20080930130726-j4n4gmlgz8wv92fv

bin/tools/translate.py

index 28c8667..c0bc083 100644 (file)
@@ -79,6 +79,7 @@ class TinyPoFile(object):
     def __iter__(self):
         self.buffer.seek(0)
         self.lines = self.buffer.readlines()
+        self.lines.append('')   # ensure that the file ends with at least an empty line
         self.first = True
         self.tnrs= []
         return self