Mark a line / Segments as "Do Not Translate" by Regular Expression

Hi, We are using SDL Trados 2021. 

We are trying to translate the markdown files. Example file pasted as a code block.

In our scenario, The titles and some special formats should not be translated.  

How could we mark some segment as "No Need to Translate"? (i.e.: Exclude them from sdlxliff)

Regex list (the matching lines not needed to be translated.):

^#.*$

^- \[.*$

^• .*$

^node_modules .*$

\| `.*?` \|

Kindly Regards

Raynor

# Class: Viewer

[ReportViewer](../modules/ReportViewer.md).Viewer

Report viewer component.

## Table of contents

### Constructors

- [constructor](ReportViewer.Viewer.md#constructor)

### Accessors

- [availableExports](ReportViewer.Viewer.md#availableexports)
- [currentPage](ReportViewer.Viewer.md#currentpage)
- [documentLoaded](ReportViewer.Viewer.md#documentloaded)
- [errorHandler](ReportViewer.Viewer.md#errorhandler)
- [history](ReportViewer.Viewer.md#history)
- [mouseMode](ReportViewer.Viewer.md#mousemode)
- [pageCount](ReportViewer.Viewer.md#pagecount)
- [renderMode](ReportViewer.Viewer.md#rendermode)
- [reportLoaded](ReportViewer.Viewer.md#reportloaded)
- [stateChanged](ReportViewer.Viewer.md#statechanged)
- [toolbar](ReportViewer.Viewer.md#toolbar)
- [viewMode](ReportViewer.Viewer.md#viewmode)
- [zoom](ReportViewer.Viewer.md#zoom)

emoji
Parents Reply
  • Hi

    Thank you for your post. 

    2 things come to mind.

    1. File Type settings

    How has your file type settings been defined? Are you using any of the embedded content processors?
    As I believe from that point on you can confirm certain strings as tags and then clarify if the tag is inline or structure etc.

    Trados Studio file type settings window showing options for handling line breaks, translating code blocks, and translating HTML blocks with checkboxes. Embedded content processor dropdown menus are visible.

    2. Trados Data Protection Suite

    I love this app: https://appstore.sdl.com/language/app/trados-data-protection-suite/936/

    I use it in a way that in not strictly conventional but it may give you some short term relief  that I want to mentioned regardless.
    Regardless of your file type settings (primary area to perfect), if you have your strings in plain text within the Studio Editor you can try run the app - define your regex rules and it will tag accordingly. 

    Both options means the titles will be part of the sdlxliff but they should be tagged and therefore protected.

    I hope this helps and gives you avenues to explore

    Lyds

    Lydia Simplicio | 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 4:40 AM (GMT 0) on 5 Mar 2024]
Children