Commit 709b1fb0 authored by Yusei Tahara's avatar Yusei Tahara

2008-09-04 yusei

* Update English messages.
* Fix variable name.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23431 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f3fa9537
......@@ -76,7 +76,7 @@ if dms_module is not None:\n
attachment_index = int(uid.split(\'index_\')[-1])\n
attachment_info = [i for i in attachment_info_list if i[\'index\'] == attachment_index][0]\n
file = context.getAttachmentData(index=attachment_index)\n
doc = dms_module.newContent(follow_up=context.getFollowUp(),\n
document = dms_module.newContent(follow_up=context.getFollowUp(),\n
portal_type = line[\'content_type\'],\n
description = line[\'description\'],\n
version = line[\'version\'],\n
......@@ -84,16 +84,19 @@ if dms_module is not None:\n
language = line[\'language\'],\n
reference= line[\'reference\'],\n
title = line[\'title\'])\n
doc.edit(source_reference=attachment_info[\'file_name\'], file=file)\n
document.edit(source_reference=attachment_info[\'file_name\'], file=file)\n
\n
if len(uids) == 1:\n
message = Base_translateString(\'${portal_type} created successfully.\',\n
mapping={\'portal_type\':document.getTranslatedPortalType()})\n
return context.REQUEST.RESPONSE.redirect(\n
\'%s/view?portal_status_message=%s+%s.\' % (doc.absolute_url(), doc.getTranslatedPortalType(),\n
Base_translateString(\'+created+successfully.\')))\n
\n
\'%s/view?portal_status_message=%s\' % (document.absolute_url(), message)\n
)\n
message = Base_translateString(\'${count} documents created successfully.\',\n
mapping={\'count\':len(uids)})\n
return context.REQUEST.RESPONSE.redirect(\n
\'%s?portal_status_message=%s+%s.\' % (dms_module.absolute_url(),len(uids),\n
Base_translateString(\'+documents+created+successfully\')))\n
\'%s?portal_status_message=%s\' % (dms_module.absolute_url(), message)\n
)\n
</string> </value>
</item>
<item>
......@@ -164,8 +167,9 @@ return context.REQUEST.RESPONSE.redirect(\n
<string>i</string>
<string>attachment_info</string>
<string>file</string>
<string>doc</string>
<string>document</string>
<string>len</string>
<string>message</string>
</tuple>
</value>
</item>
......
298
\ No newline at end of file
299
\ 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