Add translation rule

Events happening in the community are now at Drupal community events on www.drupal.org.
rschaft's picture

Hi,

I'm building a new website in 2 languages. After adding a page in the English language, I want the users to be directed to the other language form (nomally in the tab Translation + link 'add translation').
Is this possible with the rules module and how can this be achieved?
I've tried to use the redirect, but don't know how to address the relationship for the translation with the original node.

Greetings,
Ruud

Comments

Use [node:nid] in the path

masantopaolo's picture

Relationship with original node can be done using [node:nid] in the path specified

You can try this :

Create a rule with event "After saving new content"
Add a condition (if you want) ie "Content is of type ..."
Add an action "Page redirect" and specify a path :

If you're using "standard" translation (translations of a same node have a different node number) :
node/add/request?translation=[node:nid]&target=en

If you're using "entity translation" for this content type (only 1 node number for all translations of the same node) :
node/[node:nid]/translate/add/de/[node:language]
- replace "de" with the 2nd language of your site
- replace "[node:language]" with "en" if you're only dealing with english as source language

(Works with D7 / rules2)

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: