Hello, this is what I've done to make translation actions visible in CPS 3.4:
1.- Go to portal_workflow
2.- For every workflow in [workspace_content_wf, workspace_folder_wf, section_content_wf y section_folder_wf]
3.- Create a new transition with id translate or if it's already created complete this properties:
Transition type: Initiated by user action
Script (before): add_language_to_proxy
Permissions: Modify portal content
Name (formatted): action_translate
URL (formatted): %(content_url)s/content_translate_form
Category: workflow
All fields left, empty or unchecked.
4.- Create a new transition with id delete_translation or if it's already created complete this properties:
Transition type: Initiated by user action
Script (before): delete_language_from_proxy
Expression: python:not state_change.object.isDefaultLanguage()
Name (formatted): action_delete_translation
URL (formatted): %(content_url)s/content_delete_translation
Category: workflow
All fields left, empty or unchecked.
5.- Now, go to the portal and check the new action ;-)
Eric, you asked me to post it to CPS Project, but I don't know where.
Regards
JoseLuis de la Rosa Triviño
Becario Área de Sistemas de Información
FUNDACIÓN IAVANTE
joseluis.rosa at iavantefundacion.com
Tel. 951 015 300
Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.
This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.
-----Mensaje original-----
De: Eric Barroca [mailto:eb at nuxeo.com]
Enviado el: lunes, 24 de abril de 2006 14:26
Para: JoseLuis de la Rosa Triviño
CC: cps-users at lists.nuxeo.com
Asunto: Re: [CPS-users] Why translate is not available as action?
Hi,
On 24 avr. 06, at 14:08, JoseLuis de la Rosa Triviño wrote:
We have noticed that the translate transition has no "Display in actions box" attributes in CPS 3.4, does it mean that this transition is going to change or not to be available in next versions?
Translation is going to change to become more flexible and easier to understand.
I have filled those attributes like they are in CPS 3.3.8 and translation works fine in CPS 3.4
This feature is not enabled by default but still available. :-)
Maybe you can post a quick howto on CPS project ?
Thanks,
EB.
--
Éric Barroca - Tel: +33 6 21 74 77 64 (mobile).
Nuxeo - Open Source ECM - www.nuxeo.com
CPS Platform - The open source ECM Platform
http://cps-project.org - http://www.nuxeo.com/en/cps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-users/attachments/20060425/1e01f7ef/attachment.html
Hosting: Nuxeo: Zope service provider