Actions
Bug #102579
closedtypo3Language Site Configuration set to a full locale instead of language key
Start date:
2023-12-01
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.3/Deprecation-99882-SiteLanguageTypo3LanguageSetting.html introduced a autodetection method for the "typo3Language" option.
The autodetection uses:
$typo3Language = $this->locale->getLanguageCode(); if ($this->locale->getCountryCode()) { $typo3Language .= '_' . $this->locale->getCountryCode(); }
Appending the Country Code to a string like "de" or "en" will lead to a language key like "de_DE", which then searches for files called `de_DE.locallang.xlf` - but the files are (usually? always?) called `de.locallang.xlf`.
Actions