XLIFFWriter won't write TextUnit target properties is no text
Issue #523
resolved
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)
-
-
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
Fix Issue
#523- XLIFFWriter will preserve properties on empty targets→ <<cset f9de3cc841fc>>
-
I've committed a fix to dev that will preserve empty TextContainers if they exist, and only create a new one if needed.
- Log in to comment
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.