Hi,
I am working on a project with many .resx files, on which the client has commented the strings that need translation. Comment used was:
PENDING TRANSLATION, PLEASE REMOVE THIS COMMENT WHEN THE ENTRY IS PROCESSED.
Sample fragment of the code follows for your reference:
____________________________________________________________________________________________
<data name="ERR_BAD_CUSTOMER_ID" xml:space="preserve">
<value>Le fichier license contient un identificateur de client erroné</value>
</data>
<data name="ERR_RPSLIC_MISSING" xml:space="preserve">
<value>le fichier de licence {0} est absent</value>
<comment>TRANSLATED.</comment>
</data>
<data name="ERR_TRIAL_LICENSE_ERROR" xml:space="preserve">
<value>La licence de test a expiré ou n'est pas installée correctement</value>
</data>
<data name="TXT_SELECT_LIC" xml:space="preserve">
<value>Select license file</value>
<comment>PENDING TRANSLATION, PLEASE REMOVE THIS COMMENT WHEN THE ENTRY IS PROCESSED.</comment>
</data>
<data name="TXT_TITLE" xml:space="preserve">
<value>Application License Reader</value>
<comment>PENDING TRANSLATION, PLEASE REMOVE THIS COMMENT WHEN THE ENTRY IS PROCESSED.</comment>
</data>
_________________________________________________________________________________________________
In order to filter this comments, I changed the Studio .Net rule.
from:
//data/value
to this:
//data[(comment)]/value
However, I noticed to there could be more than one comment on the files, but I simply need to translated those in which comment is:
<comment>PENDING TRANSLATION, PLEASE REMOVE THIS COMMENT WHEN THE ENTRY IS PROCESSED.</comment>
Is there any way to filter only those value strings on which comment starts or contains "PENDING TRANSLATION..."?.
Any ideas?,
Thanks,
Jose