Due to essential maintenance, access to Trados cloud will be unavailable on Saturday 30 August from 00:00 to 12:00 UTC.

Excluding from translation text of certain format

Hello,

We need to process Word files with programming text that shouldn't be translated. That text is always formatted the same (grayed-out, 50%). 

There are about 2,300 of those files and would like a better alternative than having to prep every single file (hiding the programming text, for instance).

The large TM that we have was built by "blocking" the programming text (i.e., making it non-editable). This "blocking" seems to produce tags that are different than the ones we get by hiding the text (thus affecting the use of the TM).

The way we "block" the programming text is through a Macro that has to be applied to every single file (no much better option than hiding the text).

Is there any viable alternative (through Trados Studio settings or otherwise) to make that programming text be excluded from translation and making the resulting tags coincide with what we have in the TM?

I'm attaching two small samples. One with "blocked" text, the other shows how we originally get the files.

I would greatly appreciate any suggestion or advice you may have to resolve this problem.

Thank you

Gilberto

Screenshot of a Word document with grayed-out programming text at 50% formatting, indicating text that should not be translated.DOCXScreenshot of Trados Studio software showing a document with 'blocked' programming text, made non-editable by a Macro.DOCX



Generated Image Alt-Text
[edited by: Trados AI at 11:29 PM (GMT 0) on 28 Feb 2024]
emoji
  • You can handle these files using Studio, in a variety of ways.  The easiest is probably to use the embedded content processor, like this:

    Trados Studio options window showing embedded content processor settings with options to enable or disable processing and define document structure.

    That will get you something like this:

    Preview of a text segment in Trados Studio with a warning highlighted in yellow indicating a potential issue with the embedded content tag.

    And of course you could expand the tag so it's still readable if needed:

    Expanded view of a text segment in Trados Studio showing the full embedded content tag with no visible errors or warnings.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 11:29 PM (GMT 0) on 28 Feb 2024]
  • As always, Paul. Thank you very much!


    First time I'm using this option.


    A couple of questions:

    It's not very clear from the image: It looks like "<%,+?%>" (comma after %). I tried that (and a period too) but it doesn't work. Could you please tell me what's the correct text?

    I believe I'm OK by choosing "sdl:body" for the Document structure information.

    I'm just afraid the tags generated through this method may not coincide with the ones contained in our TM (all files have been processed with the programming text blocked). We shall see.

    Thanks again.

  • It's not very clear from the image: It looks like "<%,+?%>" (comma after %). I tried that (and a period too) but it doesn't work. Could you please tell me what's the correct text?

    <%.+?%>

    I think the reason the period failed for you is either because of the next point or because your actual file contains something different.

    I believe I'm OK by choosing "sdl:body" for the Document structure information.

    You should use what I suggested as it's a catch all.  If you don't you have to make sure you identify all the different sorts of structure that could contain this text.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Look at Paul's screenshot. He does not use any specific structure information, but the option "Extract in all paragraphs". This is IMO the culprit here. And of course you need to create this rule in your project template BEFORE adding any files to the project. If you do that afterwards, it won't work.

    For resolving this issue in an already created project, use Cleanup Tasks.

    _________________________________________________________

    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.

  • Thank you, Paul!

    I'm using Trados Studio 2021 and I don't get those two options ("Extract in defined. . ." and "Extract in all. . .".  I just get "Document structure information".
    I'm still unable to convert to tags. Will keep trying.

    Thanks again.

    Gilberto

  • Are you possibly using a project template, which has been created in an older version of Studio? If so, click the "Reset to default" at the bottom of the file types view.

    _________________________________________________________

    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.

  • Make sure you have this version:

    SDL Trados Studio 2021 - 16.0.2.3343
    SDL MultiTerm 2021 - 16.0.1.304

    I have a feeling this may have been introduced recently as it was available in Trados Live but not Studio.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • The version I have is 16.0.1.2917.

    I got it to work for some instances by changing to "sdl:paragraph".

    Unfortunately the different kind of tags (the ones from this method and the ones we have in TM ("ContentControl" created by blocking text) create matching issues.

    I'm not sure if that can be easily resolved.

  • First: upgrade to the version Paul mentioned.

    Second: post examples of text to be hidden. Regex is very flexible and Paul (or some other people here) will be able to provide solutions.

    But for the time being the first step is to upgrade. Or you just add all possible options for document structure, like sdl:paragraph, sdl:heading and so on, as you cannot tell upfront in which parts of your files the tags will occur.

    _________________________________________________________

    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.

  • I got it to work for some instances by changing to "sdl:paragraph".

    That's because some of your texts have the paragraph structure, but not all.  You either upgrade (it's free!) or add the appropriate structure for every instance in your file.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

1 2