Commit 22f0e212 authored by Yusei Tahara's avatar Yusei Tahara

Add response header for po file.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19444 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b3ece4e
......@@ -117,7 +117,9 @@ for i in catalog(portal_type=\'Glossary Term\',\n
print MESSAGE_TEMPLATE % {\'english\':format(english_description),\n
\'translation\':format(translated_description)}\n
\n
context.REQUEST.RESPONSE.setHeader(\'Content-Type\', \'text/plain;charset=utf-8\')\n
RESPONSE = context.REQUEST.RESPONSE\n
RESPONSE.setHeader(\'Content-disposition\', \'attachment;filename=translation.po\')\n
RESPONSE.setHeader(\'Content-Type\', \'text/x-gettext-translation;charset=utf-8\')\n
\n
return printed\n
</string> </value>
......@@ -184,6 +186,7 @@ return printed\n
<string>translated_description</string>
<string>english_title</string>
<string>english_description</string>
<string>RESPONSE</string>
</tuple>
</value>
</item>
......
......@@ -197,7 +197,9 @@ for message in message_list:\n
comment = \'\\n\'.join([(\'#: %s\' % i) for i in comment_list])\n
print MESSAGE_TEMPLATE % (comment, format(message))\n
\n
context.REQUEST.RESPONSE.setHeader(\'Content-Type\', \'text/plain;charset=utf-8\')\n
RESPONSE = context.REQUEST.RESPONSE\n
RESPONSE.setHeader(\'Content-disposition\', \'attachment;filename=translation.pot\')\n
RESPONSE.setHeader(\'Content-Type\', \'text/x-gettext-translation-template;charset=utf-8\')\n
\n
return printed\n
</string> </value>
......@@ -283,6 +285,7 @@ return printed\n
<string>append</string>
<string>$append0</string>
<string>comment</string>
<string>RESPONSE</string>
</tuple>
</value>
</item>
......
208
\ No newline at end of file
209
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment