XLIFFWriter won't write TextUnit target properties is no text

Issue #523 resolved
Former user created an issue

I am trying to write a TextUnit that has a default translation, but none in the target language. I have set the STATE property to a value indicating that it needs to be translated, but because the TextContainer is empty, a new TextContainer is created that no longer has the property set. This happens lines 542-546 of XLIFFWriter (M28).

Comments (4)

  1. Chase Tingley

    Hello! I want to make sure I understand what you're asking. I think you're saying that you want a text unit with source text, no target text, but a specific state value on the target element?

    If that's correct, I think there's a pretty easy fix where we preserve the existing empty TextContainer and only create a new one if it's null.

  2. Chase Tingley

    I've committed a fix to dev that will preserve empty TextContainers if they exist, and only create a new one if needed.

  3. Log in to comment