#108708XLF version 2.0 file format broken with TYPO3 14.1
Description
Hi,
with introduction of XLIFF version 2.0 I have changed all of my XLF files to the new format and they are working in TYPO3 14.0.0 -> 14.0.2
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en" trgLang="de">
<file id="mysqlreport-module">
<unit id="title">
<segment state="final">
<source>Slow Queries</source>
</segment>
</unit>
<unit id="short_description">
<segment state="final">
<source>Profiling-based latency report</source>
</segment>
</unit>
<unit id="description">
<segment state="final">
<source>
Lists the 100 slowest queries based on internal profiling data.
This allows you to identify performance bottlenecks without needing the global slow query log enabled.
</source>
</segment>
</unit>
</file>
</xliff>
After upgrade to TYPO3 14.1.0 all labels are broken (see screenshot)
After removing “srcLang” and “trgLang” the file is working again.
Stefan
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
Files 1
History 5
-
Stefan Froemken changed attached Bildschirmfoto 2026-01-20 um 23.47.29.png <span data-processor="relativetime" data-value="2026-01-20T23:14:14+00:00" > 01/20/26, 23:14 </span>
-
Garvin Hicking commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2026-01-21T07:43:55+00:00" > 01/21/26, 07:43 </span> -
Ayke Halder commented <span data-processor="relativetime" data-value="2026-01-21T15:21:18+00:00" > 01/21/26, 15:21 </span>
The shown english XLIFF file is not valid – that’s why it’s not working:
<xliff version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en" trgLang="de"> <segment state="final"> <source>Slow Queries</source> </segment>Either implement
<source>and<target>:<xliff version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en" trgLang="en"> <segment state="final"> <source>Slow Queries</source> <target>Special english-to-english translation of Slow Queries</target> </segment>Or remove the
trgLang="…"attribute from<xliff>tag:<xliff version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en"> <segment state="final"> <source>Slow Queries</source> </segment>——
Also see section “4.2.2.1 xliff” in https://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html
> Constraints
> ThetrgLangattribute is REQUIRED if and only if the XLIFF Document contains<target>elements that are children of<segment>or<ignorable>. -
Ayke Halder changed Related to #108386 <span data-processor="relativetime" data-value="2026-01-21T16:02:00+00:00" > 01/21/26, 16:02 </span>
-
Stefan Froemken changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2026-01-23T18:39:57+00:00" > 01/23/26, 18:39 </span>
What’s the full path of your xlf file?
You are aware you say you only use english, but trgLang=de? Then you need a german and english file. Otherwise the english file needs not to have srcLang/trgLang.