Trados SDK: how to cleanly remove all the comments in a sdlxliff

We are trying to create an Trados Studio app to remove all the comments in multiple sdlxliff files. We have one particular problem, though.

For a comment applied to a range of text (i.e. a comment whose scope is "Current Selection" as shown in the image below),

Screenshot of the 'Add Comment' dialog in Studio Developers Q&A with 'Scope' set to 'Current Selection', 'Severity level' set to 'For your information', and a 'Sample comment' entered in the text box.

we have no problem to remove the comment itself but the highlight of the text always remains as shown in the image below.

Screenshot of Studio Developers Q&A interface showing a sample sentence with a highlighted section and a comment indicating 'This is a sample sentence for my question.'

Could anybody teach me how to programmatically remove the highlight as well in a proper manner? I would appreciate your help. Thank you.



Generated Image Alt-Text
[edited by: RWS Community AI at 7:21 AM (GMT 0) on 15 Nov 2024]
emoji
Parents Reply Children
No Data