#108427TYPO3 backend login broken when xlf file not translated properly
Description
Today the TYPO3 backend login was broken for several users of the German translation of TYPO3 because a label in the XLF files was not translated properly.
Reason was that in Crowdin the id “free_software_and_warranty” from EXT:backend/Resources/Private/Language/locallang_login.xlf was translated without keeping %s for sprintf.
English:
TYPO3 CMS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions, see %sdetails about licenses.%s
Broken German translation:
TYPO3 CMS wird OHNE JEGLICHE GEWÄHRLEISTUNG bereitgestellt. Es handelt sich um freie Software, die du unter bestimmten Bedingungen weiterverbreiten darfst. Weitere Informationen findest du unter %sdetails about licenses.%
After the last % the s is missing.
This lead to an exception when a backend user tried to login into TYPO3:
> ValueError
> Missing format specifier at end of string
vendor/typo3/cms-core/Classes/Information/Typo3Information.php line 98
The broken translation was introduced Dec 07, 22:08 and fixed Dec 08, 9:07. So only a small number of users should be affected. Mostly those who do updates of language files during deployment.
The TYPO3 Localization Team will improve the documentation and increase the awareness for translators and especially proofreaders to keep an eye on %s in labels during translation.
But maybe it’s also possible to improve the TYPO3 core to better detect broken labels and fallback to english and log the error only.
Reviews 2
Related issues 3
- Bug #106402Critical error in LocalizationUtility.php when accessing Backend Users in Spanish
- Bug #108424Backend login crashes with ValueError in sprintf() when German translation is used (invalid format string for free_software_and_warranty)
- Bug #108466Properly throw ValueError in locallang translate handling
History 68
-
Garvin Hicking commented <span data-processor="relativetime" data-value="2025-12-08T13:52:22+00:00" > 12/08/25, 13:52 </span>
-
Garvin Hicking changed Related to #106402 <span data-processor="relativetime" data-value="2025-12-08T13:52:44+00:00" > 12/08/25, 13:52 </span>
-
Garvin Hicking changed Related to #108424 <span data-processor="relativetime" data-value="2025-12-08T19:38:50+00:00" > 12/08/25, 19:38 </span>
-
Garvin Hicking changed Related to #108466 <span data-processor="relativetime" data-value="2025-12-10T18:50:25+00:00" > 12/10/25, 18:50 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 92094 status
NewUnder Review <span data-processor="relativetime" data-value="2025-12-10T18:51:05+00:00" > 12/10/25, 18:51 </span> -
Gerrit Code Review pushed patch set 2 for main to change 92094 <span data-processor="relativetime" data-value="2025-12-10T19:55:28+00:00" > 12/10/25, 19:55 </span>
-
Garvin Hicking commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-12-11T14:05:08+00:00" > 12/11/25, 14:05 </span>Applied in changeset commit:678f599446ac5ee38c908a9276315d9b1ec7c644.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-03-31T09:01:04+00:00" > 03/31/26, 09:01 </span>
We had the same problem for spanish before:
https://review.typo3.org/c/Packages/TYPO3.CMS/+/88661
Please see the discussion in gerrit.