How to adapt xliff 1.1.-1-2 to lock Confluence "code" formatting

Hello,

I'm using Studio 2024 and I'm struggling with efficiently translating xliff files exported from Atlassian Confluence xliff version 1.1.-1.2). 

1. Exclude Code format from translation

There is a formatting option called "code" in Confluence, which leads to the following tags: Highlighted XML code showing 'x-code' tags with text formatted as code.

I want the xliff parser to lock these tags with "code" formatting. I tried with the following setting in the file type settings but there was no effect:

<[^>]*x-code[^>]*>

Trados Studio settings window with 'AddEdit Embedded Content Rule' dialog open, showing regex for 'x-code' tags.

Trados Studio editor view displaying segments with 'x-code' and 'x-vsn-link' tags highlighted.

I did not change anything for the tag segmentation:

Advanced Settings dialog in Trados Studio showing options for tag properties and segmentation hints.

Can you help with the regex? I tried to avoid using the whole phrase because I'm alway unsure about escaping the " "...

Or is this the wrong place to make these settings??

2. Exclude hyperlink texts from translation

I want to use the same approach to exclude link texts from translation, as Confluence (AFAIK) willl automatically use the page title as link text once translated. 

-> So I need to exclude these texts as well:

Highlighted XML code showing 'x-vsn-link' tag with attributes and text 'Translation tests'.

-> but not those links where a custom link title is used:

Highlighted XML code showing 'x-vsn-link' tag with attributes and text 'I am a link to another chapter'.

I'm not very good at these regular expression things and I've wasted some time now on that so I hope you can help :-) 

yve



added reg ex
[edited by: Yvonne Rezbach at 10:06 AM (GMT 1) on 3 Jun 2025]
emoji