Hi there,
i have to adapt the filetype of an existing Project Type in WorldServer. The actual implemented state is, that there are xml files to be translated which can contain html-tags. The filetype used is xml v 1.3.0.5 and also Embedded Content Plain Text. I am using Trados Studio 2021 for the changes.
The following needs to be adapted
1. text which is in curly brackets needs to be protected from translation e.g. "Zum Beispiel {model.trunkCapacity}"
2. for xml-elements which have certain attribute (anchor, itemLink, linkURL, modelCode, path, sling:alias) the text needs to be protected from translation
3. for xml-elements which have certain attributes (navTitle, jcr:description) the text needs to be colored
I have done following changes in Trados Studio to implement the changes
1. protected text in curly brackets:
I created a placeholder in the inline-tags for the embedded content, in the placeholder i entered a regular expression which should cover all text in curly brackets. When i preview in Trados Studio the curly brackets are not protected....what am i doing wrong here?
2. protected text for xml-elements with certain attributes:
I created a parser rule for the file type (for tests only for the anchor attribute) and set it to not translatable. This works but the problem is that the text is therefore not shown in the preview, he is removed completely. This is not what is needed, the text needs to be shown but only protected...what am i doing wrong here?
3. differently colored text for certain xml-elements:
i created a parser rule and set the formating to a different color, this works as intended, so no questions here.
i have attached a example xml-file with which i tested the changes
Can someone help me with the first two points, i dont know how to solve this. Any help is greatly appreciated, thanks in advance
Generated Image Alt-Text
[edited by: RWS Community AI at 9:07 AM (GMT 1) on 16 Sep 2024]
