Exclude descriptions starting with /* from a text file

Hello community

I have received a txt file for translation from which I want to exclude the Description of the strings. Descriptions are starting with /* and closing with */

Is there an easy way to do this in the Trados filetype?

Many thanks

Sample of text below

/*Endpoint status message text presented on Sensor only endpoint*/
"No security product installed"

/*Description for Sensor product in Bootrapper installer*/
"Sensor: Data collection for advanced threat analysis."

emoji
Parents
  •   

    Yes, that's terribly simple. As you create your project, you go into project settings, select the "text" file type and enter ^" as opening pattern and "$ as closing pattern. Delete the closing pattern that is already there. Make it multiline if necessary.

    Move the "Text" file type all the way to the top of the list of file types and make sure it's selected (checkmark). Try previewing your file to see whether you are happy.

    Studio is really strong on file types, IMHO. You can make almost everything work.

    Daniel

    Trados Studio screenshot showing Document structure settings with 'Text' file type selected. Opening pattern entered as caret symbol and closing pattern as dollar sign. Multiline option set to True.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:44 AM (GMT 0) on 5 Mar 2024]
Reply
  •   

    Yes, that's terribly simple. As you create your project, you go into project settings, select the "text" file type and enter ^" as opening pattern and "$ as closing pattern. Delete the closing pattern that is already there. Make it multiline if necessary.

    Move the "Text" file type all the way to the top of the list of file types and make sure it's selected (checkmark). Try previewing your file to see whether you are happy.

    Studio is really strong on file types, IMHO. You can make almost everything work.

    Daniel

    Trados Studio screenshot showing Document structure settings with 'Text' file type selected. Opening pattern entered as caret symbol and closing pattern as dollar sign. Multiline option set to True.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:44 AM (GMT 0) on 5 Mar 2024]
Children
No Data