Triggering translations from Event System

You can trigger a translation from the Event System, allowing you to create translation jobs and send items for translation when an event system event is fired.

The Event System allows you to call custom code before and after actions occur within the Content Manager. The Event System raises (pre or post) events when actions occur within the Content Manager, such as saving a Component or publishing a Page. Pre-action events are triggered before a Content Manager action is performed, therefore the event may influence the action. Post-action events are triggered after a Content Manager action is performed.

To trigger a translation from the Event System:

  • Program an event to send an item(s) for translation: write the event in Visual Basic from which you can access the Translation Manager (domain model) via the COM API
  • Specify any of the translation options available in the Translation Job dialog, such as the name, priority, target languages, and so on

Sample code to trigger push and pull translations from the Event System are available on the SDL Tridion installation media Translation Manager\samples directory.