How to set html parser rule to translate or NOT translate text in span elements based on the value of an attribute (data-condition)? The html code is generated by RoboHelp. [Conditional text]

<p class="Numbered" dir="ltr">Click to place the object in the drawing.<span data-condition="VW:Comment"> [Test of conditional text for translation.]</span></p>

Parents
  • Hi guys,

    A similar question: is there a way to say "Translatable" based on certain conditions? Like <code> would always be "Not Translatable", except when its "class = c1". 

    Trados Studio Edit Rule window showing an incorrect attribute condition for 'code class=c1' with a red box highlighting 'has not value' error. Text editor in Trados Studio with multiple 'code' tags, some with class 'c1' highlighted, and a comment questioning why subtraction here when the imaginary component increases as we go up.

    I solved the problem manipulating the XML. 

    But I wonder if wouldn't be a more simple way to do this.

    Thank you all!

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 9:42 AM (GMT 0) on 29 Feb 2024]
Reply
  • Hi guys,

    A similar question: is there a way to say "Translatable" based on certain conditions? Like <code> would always be "Not Translatable", except when its "class = c1". 

    Trados Studio Edit Rule window showing an incorrect attribute condition for 'code class=c1' with a red box highlighting 'has not value' error. Text editor in Trados Studio with multiple 'code' tags, some with class 'c1' highlighted, and a comment questioning why subtraction here when the imaginary component increases as we go up.

    I solved the problem manipulating the XML. 

    But I wonder if wouldn't be a more simple way to do this.

    Thank you all!

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 9:42 AM (GMT 0) on 29 Feb 2024]
Children
No Data