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
  • Thank you for the space, I have overseen that.

    %[^\s]+ will not catch all embedded items shown here, this is why I created what I did. However, without having the complete file to test developing anything is like a view in a crystal ball. The best option would always be to treat the embedded content more specifically, i.e. a separate expression for %xx and for $xx and so on.

    _________________________________________________________

    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.

Children