Commit d44e5ea8 authored by Jérome Perrin's avatar Jérome Perrin

run_my_doc: fix translations

These translations where creating too many messages
parent 49236ced
...@@ -26,4 +26,6 @@ for uid in uids: ...@@ -26,4 +26,6 @@ for uid in uids:
obj.manage_copyObjects(list(obj.objectIds()))) obj.manage_copyObjects(list(obj.objectIds())))
return conv_obj_module.Base_redirect('', return conv_obj_module.Base_redirect('',
dict(portal_status_message=context.Base_translateString(str(counter) + " object(s) converted."))) dict(portal_status_message=context.Base_translateString(
"${document_count} documents converted.",
mapping={'document_count': counter})))
...@@ -42,4 +42,4 @@ if slide_type in ['Screenshot', 'Illustration'] and upload_image: ...@@ -42,4 +42,4 @@ if slide_type in ['Screenshot', 'Illustration'] and upload_image:
form_id = context.REQUEST.get('dialog_id', None) form_id = context.REQUEST.get('dialog_id', None)
context.Base_redirect(form_id, context.Base_redirect(form_id,
keep_items = dict(portal_status_message=translateString(msg))) keep_items = dict(portal_status_message=msg))
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