Remove segments between /* -*/ for translation

Former Member
Former Member

Hello all,

I thought I had this figured out yesterday, but now I have a new issue. I have a .strings file, where I'm using a file type 'Regular Expression Delimited Text Document'. I'm having trouble getting comments (denoted with a starting /* and ending */) to not be available for translation. Here is an example of the text:

/* No comment provided by engineer. */
"%ld %@ waiting to upload \n %ld %@ waiting to upload" = "%1$ld %2$@ waiting to upload \n %3$ld %4$@ waiting to upload";

/* No comment provided by engineer. */
"%lu hour time limit." = "%lu hour time limit.";

Can someone please help me determine which regex code to use in the tag pairs to exclude this?

Thank you in advance for help.

Best, Mindy

Parents Reply
  • Trados Studio options window showing Document structure settings with instructions to enter opening pattern '.*?=' and closing pattern ';' in the text fields, then click 'Modify'.

    When you do that, it should prevent Studio from reading any other line in the document, thus also remove all the comments you want.

    BTW, if you want regex to look for *, you must escape this character entering \*, as otherwise it is treated as quantifier 0 to unlimited times for the preceding character.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji


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