[Zope3-checkins] CVS: Zope3/src/zope/app/translation_files -
extract.py:1.8
Philipp von Weitershausen
philikon at philikon.de
Wed Aug 20 02:02:25 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/translation_files
In directory cvs.zope.org:/tmp/cvs-serv30782
Modified Files:
extract.py
Log Message:
Fix message ids with defaults spanning over several lines
=== Zope3/src/zope/app/translation_files/extract.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/translation_files/extract.py:1.7 Mon Aug 18 16:44:47 2003
+++ Zope3/src/zope/app/translation_files/extract.py Wed Aug 20 01:02:20 2003
@@ -97,7 +97,9 @@
from zope.i18n.messageid import MessageID
if isinstance(self.msgid, MessageID) and \
self.msgid != self.msgid.default:
- file.write('# Default: %s\n' %normalize(self.msgid.default))
+ default = self.msgid.default.strip()
+ default.replace('\n', '\n# ')
+ file.write('# Default: %s\n' % normalize(default))
file.write('msgid %s\n' %normalize(self.msgid))
file.write('msgstr ""\n')
file.write('\n')
More information about the Zope3-Checkins
mailing list