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
  • You cannot exclude anything using regex in the markdown filetype.  Looking at your file only the first two expressions match anything anyway so a more complete example would be helpful.  But based on your example I would exclude these two matching expressions using the advanced display filter as they match the headings and list items.

    Trados Studio interface showing the Advanced Display Filter with options to filter content by headings, paragraphs, and lists. The filter has been applied, showing 21 of 21 segments.

    So you could either just hide them, or lock them leaving only the paragraph items for example.

    IF you are not using the out of the box markdown filetype and have instead built your own using the Regular Expression Delimited Filetype then you can of course build the filetype to exclude whatever you like.

    Perhaps you can share a sample that includes enough examples for us to provide a more helpful answer?

    I also just noticed already responded and her idea of the Data Protection Suite is also a good one.

    Plenty of options... just need a better idea of what you have to suggest the most appropriate solution.

    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 4:40 AM (GMT 0) on 5 Mar 2024]
Reply
  • You cannot exclude anything using regex in the markdown filetype.  Looking at your file only the first two expressions match anything anyway so a more complete example would be helpful.  But based on your example I would exclude these two matching expressions using the advanced display filter as they match the headings and list items.

    Trados Studio interface showing the Advanced Display Filter with options to filter content by headings, paragraphs, and lists. The filter has been applied, showing 21 of 21 segments.

    So you could either just hide them, or lock them leaving only the paragraph items for example.

    IF you are not using the out of the box markdown filetype and have instead built your own using the Regular Expression Delimited Filetype then you can of course build the filetype to exclude whatever you like.

    Perhaps you can share a sample that includes enough examples for us to provide a more helpful answer?

    I also just noticed already responded and her idea of the Data Protection Suite is also a good one.

    Plenty of options... just need a better idea of what you have to suggest the most appropriate solution.

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