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 has the source text:

source: baz
target: qux

Actual results

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

source: baz
target: qux

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.