<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How to pre-translate a project using pre-translate batchtask</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>How to pre-translate a project using pre-translate batchtask</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask</link><pubDate>Thu, 25 Oct 2018 10:13:00 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:378c5b51-bcae-4a56-996f-46fcec4fab25</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask#comments</comments><description>Current Revision posted to Studio Developers WIKI by Andrea-Melinda Ghisa on 10/25/2018 10:13:00 AM&lt;br /&gt;
&lt;p&gt;In this tutorial our goal is to to use multiple Translation Providers&amp;nbsp;taken from an existing Studio project and fire the pre-translation batch task to retrieve the translation for each one using &lt;strong&gt;&lt;span style="color:#339966;"&gt;only one studio project&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Before start writing the code let&amp;#39;s take a look in Studio what happens when &lt;strong&gt;you have multiple providers and what to apply pre-translate batch task&lt;/strong&gt;:&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-50/studio.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-03-50/studio.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If all the providers are &amp;quot;Enabled&amp;quot; Studio &lt;strong&gt;will take by default first provider from the list&lt;/strong&gt; and apply the pre-translation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Following source code will do the following things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Take the list of translation providers from a Studio project&lt;/li&gt;
&lt;li&gt;Create another project with the configuration of the original project, apply pre-translation batch task&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Parse the files and retrieve the translations, and store somewhere and clear each&amp;nbsp; target segment. By clearing the target segment we can reuse the studio project created before and apply pre-translation for the next provider&lt;/li&gt;
&lt;li&gt;We&amp;#39;ll remove the first provider from list update the project settings and repeat step 3 and 4 until there are no translation providers left&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;How to create a Studio project and apply the Pre-Translate batch task&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/andreaGhisa/0d5a5ff9d0a7573215c3b7b543e29ee8"&gt;gist.github.com/.../0d5a5ff9d0a7573215c3b7b543e29ee8&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;How to parse sdlxliff files and clear the target segment&lt;/h2&gt;
&lt;p&gt;In order to Parse an xliff you need to create a ContentProcessor and use Visitor Pattern to get the source and target as plain text.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/andreaGhisa/e865c58b78f3fc5beb40b58de74b4c97"&gt;gist.github.com/.../e865c58b78f3fc5beb40b58de74b4c97&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;How to remove one provider and update project settings&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/andreaGhisa/bbb9eaf69ae3e7ff5332c259c738b5e7"&gt;gist.github.com/.../bbb9eaf69ae3e7ff5332c259c738b5e7&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Translation Memory API, Studio Documentation, Studio API, translation memory, Project Automation API&lt;/div&gt;
</description></item><item><title>How to pre-translate a project using pre-translate batchtask</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask/revision/5</link><pubDate>Thu, 25 Oct 2018 10:11:04 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:378c5b51-bcae-4a56-996f-46fcec4fab25</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask#comments</comments><description>Revision 5 posted to Studio Developers WIKI by Andrea-Melinda Ghisa on 10/25/2018 10:11:04 AM&lt;br /&gt;
&lt;p&gt;In this tutorial our goal is to to use multiple Translation Providers&amp;nbsp;taken from an existing Studio project and fire the pre-translation batch task to retrieve the translation for each one using &lt;strong&gt;&lt;span style="color:#339966;"&gt;only one studio project&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Before start writing the code let&amp;#39;s take a look in Studio what happens when &lt;strong&gt;you have multiple providers and what to apply pre-translate batch task&lt;/strong&gt;:&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If all the providers are &amp;quot;Enabled&amp;quot; Studio &lt;strong&gt;will take by default first provider from the list&lt;/strong&gt; and apply the pre-translation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Following source code will do the following things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Take the list of translation providers from a Studio project&lt;/li&gt;
&lt;li&gt;Create another project with the configuration of the original project, apply pre-translation batch task&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Parse the files and retrieve the translations, and store somewhere and clear each&amp;nbsp; target segment. By clearing the target segment we can reuse the studio project created before and apply pre-translation for the next provider&lt;/li&gt;
&lt;li&gt;We&amp;#39;ll remove the first provider from list update the project settings and repeat step 3 and 4 until there are no translation providers left&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;How to create a Studio project and apply the Pre-Translate batch task&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/andreaGhisa/0d5a5ff9d0a7573215c3b7b543e29ee8"&gt;gist.github.com/.../0d5a5ff9d0a7573215c3b7b543e29ee8&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;How to parse sdlxliff files and clear the target segment&lt;/h2&gt;
&lt;p&gt;In order to Parse an xliff you need to create a ContentProcessor and use Visitor Pattern to get the source and target as plain text.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/andreaGhisa/e865c58b78f3fc5beb40b58de74b4c97"&gt;gist.github.com/.../e865c58b78f3fc5beb40b58de74b4c97&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Translation Memory API, Studio Documentation, Studio API, translation memory, Project Automation API&lt;/div&gt;
</description></item><item><title>How to pre-translate a project using pre-translate batchtask</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask/revision/4</link><pubDate>Thu, 25 Oct 2018 10:06:03 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:378c5b51-bcae-4a56-996f-46fcec4fab25</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask#comments</comments><description>Revision 4 posted to Studio Developers WIKI by Andrea-Melinda Ghisa on 10/25/2018 10:06:03 AM&lt;br /&gt;
&lt;p&gt;In this tutorial our goal is to to use multiple Translation Providers&amp;nbsp;taken from an existing Studio project and fire the pre-translation batch task to retrieve the translation for each one using &lt;strong&gt;&lt;span style="color:#339966;"&gt;only one studio project&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Before start writing the code let&amp;#39;s take a look in Studio what happens when &lt;strong&gt;you have multiple providers and what to apply pre-translate batch task&lt;/strong&gt;:&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If all the providers are &amp;quot;Enabled&amp;quot; Studio &lt;strong&gt;will take by default first provider from the list&lt;/strong&gt; and apply the pre-translation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Following source code will do the following things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Take the list of translation providers from a Studio project&lt;/li&gt;
&lt;li&gt;Create another project with the configuration of the original project, apply pre-translation batch task&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Parse the files and retrieve the translations, and store somewhere and clear each&amp;nbsp; target segment. By clearing the target segment we can reuse the studio project created before and apply pre-translation for the next provider&lt;/li&gt;
&lt;li&gt;We&amp;#39;ll remove the first provider from list update the project settings and repeat step 3 and 4 until there are no translation providers left&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;How to create a Studio project and apply the Pre-Translate batch task&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/andreaGhisa/0d5a5ff9d0a7573215c3b7b543e29ee8"&gt;gist.github.com/.../0d5a5ff9d0a7573215c3b7b543e29ee8&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Translation Memory API, Studio Documentation, Studio API, translation memory, Project Automation API&lt;/div&gt;
</description></item><item><title>How to pre-translate a project using pre-translate batchtask</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask/revision/3</link><pubDate>Thu, 25 Oct 2018 10:01:37 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:378c5b51-bcae-4a56-996f-46fcec4fab25</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask#comments</comments><description>Revision 3 posted to Studio Developers WIKI by Andrea-Melinda Ghisa on 10/25/2018 10:01:37 AM&lt;br /&gt;
&lt;p&gt;In this tutorial our goal is to to use multiple Translation Providers&amp;nbsp;taken from an existing Studio project and fire the pre-translation batch task to retrieve the translation for each one using &lt;strong&gt;&lt;span style="color:#339966;"&gt;only one studio project&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Before start writing the code let&amp;#39;s take a look in Studio what happens when &lt;strong&gt;you have multiple providers and what to apply pre-translate batch task&lt;/strong&gt;:&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If all the providers are &amp;quot;Enabled&amp;quot; Studio &lt;strong&gt;will take by default first provider from the list&lt;/strong&gt; and apply the pre-translation.&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&amp;nbsp;Following source code will do the following things:&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;h3&gt;Take the list of translation providers from a Studio project&lt;/h3&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h3&gt;Create another project with the configuration of the original project, apply pre-translation batch task&amp;nbsp;&lt;/h3&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h3&gt;Parse the files and retrieve the translations, and store somewhere and clear each&amp;nbsp; target segment. By clearing the target segment we can reuse the studio project created before and apply pre-translation for the next provider&lt;/h3&gt;
&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Translation Memory API, Studio Documentation, Studio API, translation memory, Project Automation API&lt;/div&gt;
</description></item><item><title>How to pre-translate a project using pre-translate batchtask</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask/revision/2</link><pubDate>Thu, 25 Oct 2018 09:54:42 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:378c5b51-bcae-4a56-996f-46fcec4fab25</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask#comments</comments><description>Revision 2 posted to Studio Developers WIKI by Andrea-Melinda Ghisa on 10/25/2018 9:54:42 AM&lt;br /&gt;
&lt;p&gt;In this tutorial our goal is to to use multiple Translation Providers&amp;nbsp;taken from an existing Studio project and fire the pre-translation batch task to retrieve the translation for each one using &lt;strong&gt;&lt;span style="color:#339966;"&gt;only one studio project&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Before start writing the code let&amp;#39;s take a look in Studio what happens when you have multiple providers and what to apply pre-translate batch task:&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-39/studio.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If all the providers are &amp;quot;Enabled&amp;quot; Studio will take by default first provider from the list and apply the pre-translation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Translation Memory API, Studio Documentation, Studio API, translation memory, Project Automation API&lt;/div&gt;
</description></item><item><title>How to pre-translate a project using pre-translate batchtask</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask/revision/1</link><pubDate>Thu, 25 Oct 2018 08:45:42 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:378c5b51-bcae-4a56-996f-46fcec4fab25</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/w/trados-studio-api/3325/how-to-pre-translate-a-project-using-pre-translate-batchtask#comments</comments><description>Revision 1 posted to Studio Developers WIKI by Andrea-Melinda Ghisa on 10/25/2018 8:45:42 AM&lt;br /&gt;
&lt;p&gt;In this tutorial our goal is to to use multiple Translation Providers&amp;nbsp;taken from an existing Studio project and fire the pre-translation batch task to retrieve the transaltion for each one using only one studio project.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Translation Memory API, Studio Documentation, Studio API, translation memory, Project Automation API&lt;/div&gt;
</description></item></channel></rss>