#110484Language pack download fetches incompatible XLIFF 2.0 files in TYPO3 v13 causing cache warmup / localization parse crashes
Description
Hi,
When downloading translation packages (e.g. via vendor/bin/typo3 language:update), TYPO3 v13 receives and stores language files formatted in XLIFF 2.0 into var/labels/ if an extension has introduced XLIFF 2.0 files for TYPO3 v14.
Because the localization parser in TYPO3 v13 (TYPO3\CMS\Core\Localization\Parser\XliffParser) only supports XLIFF 1.0–1.2 (expecting <file><body><trans-unit> structure instead of <unit><segment>), parsing fails and throws a PHP warning / exception during label loading and cache warmup:</segment></unit></trans-unit></body></file>
[ TYPO3\CMS\Core\Error\Exception ] PHP Warning: foreach() argument must be of type array|object, null given in vendor/typo3/cms-core/Classes/Localization/Parser/XliffParser.php line 38
This causes deployment commands like vendor/bin/typo3 cache:warmup to fail completely.
Steps to Reproduce
- Install an extension on TYPO3 v13 that provides XLIFF 2.0 translations for TYPO3 v14 (e.g. video_shariff).
- Run vendor/bin/typo3 language:update
- Check the downloaded file in var/labels/<language>/<extension>/… (it contains <xliff version="2.0">).</xliff></extension></language>
- Run vendor/bin/typo3 cache:flush
- Run vendor/bin/typo3 cache:warmup
Expected Behavior
TYPO3 v13 should only receive translation packages formatted in XLIFF 1.0–1.2 compatible with the v13 parser, or the packaging/distribution endpoint should separate package builds strictly by major core version.
Actual Behavior
TYPO3 v13 downloads XLIFF 2.0 files, leading to a fatal error in XliffParser::doParsingFromRoot() due to the unsupported XML structure.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Language pack download fetches incompatible XLIFF 2.0 files in TYPO3 v13 causing cache warmup / localization parse crashes Resolves: #110484 Releases: main