How to set read-only state in XML Parser

We use Passolo 2018.

We import our translatable strings from XML files.

Now I'd like to put strings into these XML files which should not be translated but should be kept when creating the translated XML files (a.k.a. read only strings).

For that I added an attribute called "readonly" to my source XML files.

XML code snippet with 'readonly' attribute set to '0' for key1 and '1' for key2 within string elements.

Strings with a value of 0 (= False) or strings with a missing attribute should be writable, strings with a value of 1 (= True) should be read only.

How do I have to configure the XML parser to achieve this?

If I add XML metadata like this:

Dialog box for XML Metadata with 'Attributname' set to 'readonly' and 'Aktion' dropdown showing 'Status Nur lesen setzen'.

But now all strings that contain a "readonly" attribute (regardless of it's value) will be set to read only.

Where do I have to add, that a value of 0 means False and a value of 1 means True?



Generated Image Alt-Text
[edited by: RWS Community AI at 3:18 PM (GMT 0) on 14 Nov 2024]
emoji
Parents Reply Children