I have a resx file from a customer where they want to lock out certain strings from translation.
So, in addition to regular key-value pair they add a comment to show that it's locked.
Here's a snippet from their resx file:
<data name="foo" xml:space="preserve">
<value>Some string</value>
<comment>[Locked]</comment>
</data>
Naturally, existing parser rules don't deal with this, so Studio ignores the comments and marks all strings translatable.
I added a custom rule with the following XPath:
//data[//data/comment = '[Locked]']/value
and set it to Not Translatable:
However, when applied, parsing process breaks and no strings make it into the file in translatable format.
What's wrong? Online XPath tester shows that the XPath query is working just fine.
Thank you!