[EXCONTRANS-364] Empty properties makes XLIFF translation to be fulfilled with default Locale values Created: 12/Jan/22  Updated: 31/Jan/22  Resolved: 31/Jan/22

Status: Resolved
Project: Content Translation Extended (CTX)
Component/s: None
Affects Version/s: 3.4.2
Fix Version/s: 3.4.3

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Teresa Miyar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Steps to reproduce

  1. Create a component on a Page which has i18n fields, e.g, a TextAndImage component
  2. At the Headline Text (or any other i18n field) fulfill something in english
  3. Check at JCR that only default property has value (field_DE or whatever doesn't even exist) 
  4. Go to Translation Extended and translate it as XLIFF
  5. Check that at the trans-unit the target has the same value than in English (when it should be empty)

Expected results

The target tag exists, but it is empty

Actual results

The target tag has the same value than the fallback

Workaround

N/A

Development notes

The XLIFF I got:

myXLIFF.xml
<trans-unit extradata="2022.01.12 16:47:53 471" id="33a14dc7-427e-4d18-9e45-16d127ef955b:headline.i18n." resname="Text and image: Headline">
<source xml:lang="en">Headline English</source>
<target xml:lang="de">Headline English</target>
<note>http://localhost:8080/magnoliaAuthor/fallback/tagSelector.html</note>
</trans-unit>

The XLIFF the CORE (NO CTSX) returns:

core-XLIFF.xml
<trans-unit extradata="2022.01.12 16:47:53 471" id="33a14dc7-427e-4d18-9e45-16d127ef955b:headline.i18n." resname="Text and image: Headline">
<source xml:lang="en">Headline English</source>
<target xml:lang="de"/>
<note>http://localhost:8080/magnoliaAuthor/fallback/tagSelector.html</note>
</trans-unit>

Generated at Mon Feb 12 00:30:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.