Inline patterns in Passolo XML export/import file

When inline patterns protection is used in a .lpu file to protect certain part of translation unit from being translated, such information is not carried over when string lists are exported from .lpu to Passolo XML Export/Import .xml file.  This requires additional configuration for all inline patterns in the CAT environment the .xml files are processed in.  I was wondering if there is a macro which adds a marker to the inline protected variables in Passolo Export/Import .xml.

For example, you have the following string processed in .lpu:

string.one=You have {numMessage} new messages.
string.two=Total message: %d messages.

The variables marked in colored-background above is inline-pattern-protected in .lpu.  When you export the above string to Passolo XML Export/Import .xml file, you have:

<Entry Id="1" Origin="String STRING.ONE in Strings 230">You have {numMessage} new messages.</Entry>
<Entry Id="2" Origin="String STRING.TWO in Strings 230">Total message: %d messages.</Entry>

I was thinking if macro can be a solution to have something like below in Passolo XML Export/Import .xml:

<Entry Id="1" Origin="String NEW_MESSAGE in Strings 230">You have $$${numMessage}$$$ new messages.</Entry>
<Entry Id="2" Origin="String STRING.TWO in Strings 230">Total message: $$$%d$$$ messages.</Entry>

Reviewing Automation online help, it does not seem that this can be done with Passolo macro.  Any input here is appreciated.

Parents
  • The XML export/import in SDL Passolo was developed long before the Inline Pattern was introduced. It can be used to let translators work in another tools. I would suggest to use the SDLXLIFF export/import which is correctly exporting the Inline Pattern.

    Of course you can develop a macro solution that is changing the exported file and revert the changes before importing. But there are no events in the object model that are notifying you when the export is done. You can also develop a macro solution that does the complete export and import.

Reply
  • The XML export/import in SDL Passolo was developed long before the Inline Pattern was introduced. It can be used to let translators work in another tools. I would suggest to use the SDLXLIFF export/import which is correctly exporting the Inline Pattern.

    Of course you can develop a macro solution that is changing the exported file and revert the changes before importing. But there are no events in the object model that are notifying you when the export is done. You can also develop a macro solution that does the complete export and import.

Children