CPS has a powerful engine of proxies to revisions and translations management but the link to translate documents is not enable by default.
- Go to portal_workflow
- In all the workflows with identifiers workspace_content_wf, workspace_folder_wf, section_content_wf and section_folder_wf.
- Create a new transition with id translate or if it's already created complete these 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.
- 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.
- Now, go to the portal, say to the folder workspaces or a new document you had created and check that there's a new link called New translation.
- Click the action New translation and a form to select the destination language will be shown. Notice that the current language of the document is not shown in the combo box.
- Finally, click the button Create a revision for translation.
- The revision you are watching is in the language shown. Click the Ed it link and translate the texts of the document to the language.
- To switch to one revision or the other, just click the flags shown
on the right of the breadcrumbs and the document should change its language as you change the language of the site.
Yes, CPS is good for multilanguage too XD.
See you soon, Hasta la vista, Arrivederci, Au revoir, Auf wiedersehen, Até logo, Sayonara baby...