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 Reply
  • Hello , we've been facing another issue with the filter. This time, our client placed the "translate = yes" at the level of topic. However, even though we placed //topic below or above "translate = yes", it did not identify what needed to be translated. The file counted 0 words.

    Table displaying translation rules for XML elements, with columns for rule, translation, and tag type. Some rows include 'translate=yes' and nested translation rules.

    Here is the example of file:

    XML file example with 'translate=yes' attribute at the topic level. Includes a title and body with nested elements, such as paragraphs and lists, in French.

    We are trying to work like this as some of the client's file do not have "translate = yes" attributes and need to be translated integrally but we do not want to create two different Studio project (at the moment we create one project for the files without any attribute, and one project with the filter. If we place the files without the attributes, they do not show any words due to filter.

    Please let me know if you need more details and more examples.

    Thanks in advance for your help.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 1:48 PM (GMT 1) on 4 Sep 2025]
Children
No Data