# HG changeset patch # User Alexander Smishlajev # Date 1085805120 0 # Node ID c7a05bddd45344a0583466902677058daf2430db # Parent 00001a0e3fe5f235496a1e86ea5d72e99744ec70 escape quotes in msgids diff -r 00001a0e3fe5 -r c7a05bddd453 roundup/cgi/TAL/talgettext.py --- a/roundup/cgi/TAL/talgettext.py Sat May 29 02:22:13 2004 +0000 +++ b/roundup/cgi/TAL/talgettext.py Sat May 29 04:32:00 2004 +0000 @@ -14,6 +14,7 @@ ############################################################################## # Modifications for Roundup: # 1. commented out ITALES references +# 2. escape quotes in msgids """Program to extract internationalization markup from Page Templates. @@ -42,7 +43,7 @@ #from ITALES import ITALESEngine from roundup.cgi.TAL.TALDefs import TALESError -__version__ = '$Revision: 1.3 $' +__version__ = '$Revision: 1.4 $' pot_header = '''\ # SOME DESCRIPTIVE TITLE. @@ -304,7 +305,7 @@ for filename, position in positions: outfile.write('#: %s:%s\n' % (filename, position[0])) - outfile.write('msgid "%s"\n' % msgid) + outfile.write('msgid "%s"\n' % msgid.replace('"', '\\"')) outfile.write('msgstr ""\n') outfile.write('\n')