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 ...@@ -76,7 +76,7 @@ if dms_module is not None:\n
attachment_index = int(uid.split(\'index_\')[-1])\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 attachment_info = [i for i in attachment_info_list if i[\'index\'] == attachment_index][0]\n
file = context.getAttachmentData(index=attachment_index)\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 portal_type = line[\'content_type\'],\n
description = line[\'description\'],\n description = line[\'description\'],\n
version = line[\'version\'],\n version = line[\'version\'],\n
...@@ -84,16 +84,19 @@ if dms_module is not None:\n ...@@ -84,16 +84,19 @@ if dms_module is not None:\n
language = line[\'language\'],\n language = line[\'language\'],\n
reference= line[\'reference\'],\n reference= line[\'reference\'],\n
title = line[\'title\'])\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 \n
if len(uids) == 1:\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 return context.REQUEST.RESPONSE.redirect(\n
\'%s/view?portal_status_message=%s+%s.\' % (doc.absolute_url(), doc.getTranslatedPortalType(),\n \'%s/view?portal_status_message=%s\' % (document.absolute_url(), message)\n
Base_translateString(\'+created+successfully.\')))\n )\n
\n message = Base_translateString(\'${count} documents created successfully.\',\n
mapping={\'count\':len(uids)})\n
return context.REQUEST.RESPONSE.redirect(\n return context.REQUEST.RESPONSE.redirect(\n
\'%s?portal_status_message=%s+%s.\' % (dms_module.absolute_url(),len(uids),\n \'%s?portal_status_message=%s\' % (dms_module.absolute_url(), message)\n
Base_translateString(\'+documents+created+successfully\')))\n )\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -164,8 +167,9 @@ return context.REQUEST.RESPONSE.redirect(\n ...@@ -164,8 +167,9 @@ return context.REQUEST.RESPONSE.redirect(\n
<string>i</string> <string>i</string>
<string>attachment_info</string> <string>attachment_info</string>
<string>file</string> <string>file</string>
<string>doc</string> <string>document</string>
<string>len</string> <string>len</string>
<string>message</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
298 299
\ No newline at end of file \ 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