- changed version to M35
I use the OmegaT plugin snapshot v. 1.5 m34 with OmegaT snapshot v. 4.1.3_02, both downloaded today, 26 December 2017. The plugin is enabled to process XLIFF files. I translate XLIFF files (localization for Proz.com) and have encountered a problem. When I commit translations, certain segments trigger error messages about hyperlinks. After looking into the files, I discovered that: a) In source segments, hyperlinks are presented as follows:
<ph id="0">a href="%1"</ph>hyperlink text<ph id="0">/a</ph>
b) however, when target files are compiled, hyperlinks in target segments become:
<ph id="0">a href="%1"</ph>hyperlink text<ph id="0">a href="%1"</ph>
I. e., the opening tag is duplicated instead of the closing tag.
Steps to reproduce:
- Download and unzip the attached archive Okapi_XLIFF_test.zip.
- There, you will find a sample project Okapi_XLIFF_test and a filter setting file filters.xml.
- Either enable the Okapi plugin in the OmegaT file filter settings, or copy filters.xml to the settings directory.
- Open the sample project and compile translation.
- See the difference in the source and the target strings in the compiled translated file (tags around EN 15038).
I have not run any test yet, but my guess is that the issue comes from the ID value of the
<ph>
tag: We have two<ph id="0">
tags. At some point during the merge from OmegaT to XLIFF, the second tag is replaced by the first.