Skip to content

Protected entries in XLIFF show translation as source text

Preconditions

  • Project with translated XLIFF file containing entries with translate="no" or state="final".
  • Okapi filter plugin for OmegaT

Steps to reproduce

Go to XLIFF (Okapi) filter options and check (depending on the case):

  • Show and protect entries with translate='no', or
  • Protect entries with state='final', or
  • both

That's already done in the project settings of the project package attached.

Expected results

  1. The entry is highlighted and the translation is locked.
  2. The text content of the <source> element shows the source text:

source: baz
target: qux

Actual results

  1. As expected.
  2. The text content of the <source> element shows the target text:

source: qux
target: qux

See the screenshot of the attached project:

Comments

The feedback I got from OmegaT developers is that this issue is not directly OmegaT, all the transformations are done in the Okapi filter. As a matter of fact, this filter is explicitly replacing the source with the protected translation (the tooltip still show the original source text though).

See the ticket omegat-plugin#2 discussing the issue.

‌Moved from the original ticket 1323 general Okapi tracker.

‌A sample project with the file and filter settings shown in the screenshot is attached: okapi-plugin_issue-275_xliff_OMT.omt

Edited by Manuel Souto Pico