Escaped quotation marks in msgids.

This commit is contained in:
Robert Lehmann 2010-06-04 16:55:35 +02:00
parent d60c41afa9
commit 01e6e18303

View File

@ -65,5 +65,6 @@ class MessageCatalogBuilder(Builder):
pofile = open(path.join(self.outdir, '%s.pot' % section), 'w')
pofile.write(POHEADER % self.config)
for message in messages:
message = message.replace(u'"', ur'\"')
pomsg = u'msgid "%s"\nmsgstr ""\n\n' % message
pofile.write(pomsg.encode('utf-8'))