Commit 0a4265e8 authored by Nicolas Delaby's avatar Nicolas Delaby

Translate portal_type and capitalize "Clone" in portal_message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent caddf0e2
......@@ -91,7 +91,7 @@ if portal_type not in allowed_type_list:\n
translateString("You are not allowed to clone this object.")})\n
\n
# prepare query params\n
kw = {\'portal_type\' : portal_type}\n
kw = {\'portal_type\' : translateString(portal_type)}\n
\n
# Standard cloning method\n
if clone:\n
......@@ -103,7 +103,7 @@ if clone:\n
clipboard = directory.manage_copyObjects(ids=[original_id])\n
paste_result = directory.manage_pasteObjects(cb_copy_data=clipboard)\n
new_object = directory[paste_result[0][\'new_id\']]\n
message_kind = \'clone\'\n
message_kind = \'Clone\'\n
\n
if not editable_mode: \n
form_id = \'view\'\n
......
492
\ No newline at end of file
494
\ 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