How to exclude some metdata (such as quotation marks and TABs) from translation in a CSV file

I've got XML files converted into CSV files for translation (due to technical reasons I can't translate directly from the XML file).

I tried to exclude quotations marks (\q and [TAB]) by defining embedded content in the CSV file settings as follows, but I came across two difficulties.

1.) While I typed in [TAB] or it's multiplier, I got really funky results in the target column. Each letter of [TAB] was treated individually, which caused also other letters T, A, B from translatable words to be displayed as placeholders.

2.) Each time I tried to add an expression with \q, I got an error message that this regular expression is incorrect, which prevented me from conevrting the file into translatable format.

Please find enclosed my exported CSV settings and some examples of code:

[TAB][TAB][TAB][TAB]\qdescription\q : \qClipTop 155\u00B0, screw-in, without spring\q,

<displayname locale=\qFR\q value=\qDisplay of nc program names\q />

With my current settings presented below, it displays in a following manner:

Screenshot showing CSV content with multiple TAB placeholders and a highlighted error in the description field.

Screenshot displaying an XML code snippet with a highlighted error in the displayname locale attribute.

Screenshot of Trados Studio project settings with embedded content processing options and incorrect start tag expression.



Generated Image Alt-Text
[edited by: Trados AI at 4:41 AM (GMT 0) on 5 Mar 2024]
emoji
Parents
  • [TAB] is a regular expression meaning to exclude any of the three letters placed in the square brackets.

    If you really want to exclude [TAB], you must enter it differently: (?:\[TAB\])

    This is also a regular expression, using a so called non-capturing group, where the content in the round brackets is treated in the entered order.

    To have \q excluded, you must "escape" the special character \ by entering \\q

    To deal with all the elements you want to exclude you need to learn how regex works or give this to someone able to deal with that.

    _________________________________________________________

    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
Reply
  • [TAB] is a regular expression meaning to exclude any of the three letters placed in the square brackets.

    If you really want to exclude [TAB], you must enter it differently: (?:\[TAB\])

    This is also a regular expression, using a so called non-capturing group, where the content in the round brackets is treated in the entered order.

    To have \q excluded, you must "escape" the special character \ by entering \\q

    To deal with all the elements you want to exclude you need to learn how regex works or give this to someone able to deal with that.

    _________________________________________________________

    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
Children