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
  • No need to apologize, after your second answer I just supposed you might not know the "Opening pattern" and "Closing pattern" settings.

    Creating file types is a very interesting, but demanding task. Sometimes it goes very simple, on other occasion you will spend days on that. For doing this you need a basic knowledge in regex and in xpath as well. You will find good information on that on Paul Filkins blog Multifarious, which I can highly recommend. And if you understand German, you'll find also a lot of information provided by the German BDÜ. Some regex basics can also be found in this book: https://www.bdue-fachverlag.de/detail_book/150 (in English).

    _________________________________________________________

    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