Translate ONLY translate="yes" segments in DITA files

Hello,

I would like to translate ONLY segments with a translate="yes" attibute in my DITA files. Other segments do not have a translate="no" attribute as the client only mentioned what they need to translate.

Is there a way to filter/lock/exclude the segments that have no attribute and keep only the ones with translate="yes"?

For example

<note type="warning" id="note_ity_xsj_5bc" translate="yes">CONTENT TO BE TRANSLATED.</note>
<p>CONTENT NOT TO BE TRANSLATED <xref keyref="ONAPurgeflush"/>.</p>
<p>CONTENT NOT TO BE TRANSLATED:</p>
<ul id="ul_ubh_bxb_lsb">
<li>CONTENT NOT TO BE TRANSLATED.</li>

Thanks a lot for your help.

emoji
Parents
  • "Probability score": 0.8

    "Question improvement suggestion": Please provide the version of Trados Studio you are using and any steps you have already taken to try and solve this issue.

    In the meantime, based on the information you have provided, here is a suggested answer to your question:

    Hello,

    To translate only segments with a translate="yes" attribute in your DITA files in Trados Studio, you can use a similar approach to the one you mentioned for 'astX:md=true' attribute. Here are the steps:

    Step 1: Open your Trados Studio and go to the "File Types" settings.

    Step 2: Find and select the DITA file type.

    Step 3: Go to the "Parser Rules" section.

    Step 4: Add a new parser rule. Set it as always translatable and use the XPath expression '//*[@translate='yes']' to extract text from any element with the 'translate=yes' attribute.

    Step 5: Add a second rule to not extract anything at all, using the XPath expression '//*'. This ensures that only the first rule is applied.

    Step 6: Disable all other rules to maintain a clean sheet for these settings.

    Please remember to save your changes and apply these settings to your project. This should allow you to translate only the segments with a translate="yes" attribute in your DITA files.

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.

    RWS Community AI

    emoji
Reply
  • "Probability score": 0.8

    "Question improvement suggestion": Please provide the version of Trados Studio you are using and any steps you have already taken to try and solve this issue.

    In the meantime, based on the information you have provided, here is a suggested answer to your question:

    Hello,

    To translate only segments with a translate="yes" attribute in your DITA files in Trados Studio, you can use a similar approach to the one you mentioned for 'astX:md=true' attribute. Here are the steps:

    Step 1: Open your Trados Studio and go to the "File Types" settings.

    Step 2: Find and select the DITA file type.

    Step 3: Go to the "Parser Rules" section.

    Step 4: Add a new parser rule. Set it as always translatable and use the XPath expression '//*[@translate='yes']' to extract text from any element with the 'translate=yes' attribute.

    Step 5: Add a second rule to not extract anything at all, using the XPath expression '//*'. This ensures that only the first rule is applied.

    Step 6: Disable all other rules to maintain a clean sheet for these settings.

    Please remember to save your changes and apply these settings to your project. This should allow you to translate only the segments with a translate="yes" attribute in your DITA files.

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.

    RWS Community AI

    emoji
Children