Pushing HTML files for automatic Project creation in Trados

Please see case CS0050244

This particular query concerns sending HTML files to Trados to automatically create a project using a certain template. We extract HTML files from an email campaign site and inject the translated versions back for automated population. The missing link to fully automate our workflow is getting Trados to automatically create a project with SDLXLIFF files. 

Parents
  • Hi ,

    The missing link you're describing is the Trados Studio ProjectAutomation API, which lets you programmatically create projects from a template.

    Here's the approach:

    1. Use the FileBasedProject class from the Sdl.ProjectAutomation.FileBased namespace to create a new project based on an existing template (.sdltpl file).
    2. Pass your HTML source files as input — make sure your template already has the HTML file type configured with the correct parsing settings.
    3. The SDLXLIFF files will be generated in the project folder.

    A minimal example in C# can be found here.

    Hope this helps!

Reply
  • Hi ,

    The missing link you're describing is the Trados Studio ProjectAutomation API, which lets you programmatically create projects from a template.

    Here's the approach:

    1. Use the FileBasedProject class from the Sdl.ProjectAutomation.FileBased namespace to create a new project based on an existing template (.sdltpl file).
    2. Pass your HTML source files as input — make sure your template already has the HTML file type configured with the correct parsing settings.
    3. The SDLXLIFF files will be generated in the project folder.

    A minimal example in C# can be found here.

    Hope this helps!

Children