[TASK] Use Locale object in Site Configuration
This change introduces the combination of the newly added Locale class and SiteLanguage, allowing to work more with the objects than with strings as before. We're also adding an internal "POSIX" formatted logic to the Locale object, so the setLocale() calls can still work as before. This patch basically provides a bridge between the previously used POSIX format ("de_AT.utf-8") and the BCP-47 definition of language tags which is the base for the Locale class. However, both formats can now be used (in site configuration), and are properly formatted in setLocale() or in HTTP response headers in Frontend, which was a limitation before. Resolves: #99812 Releases: main Change-Id: Iee62e537f7dd334d614e4922cb7a0dd7222c379d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77685 Tested-by:Jochen <rothjochen@gmail.com> Reviewed-by:
Jochen <rothjochen@gmail.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
core-ci <typo3@b13.com>
Showing
- typo3/sysext/backend/Classes/Controller/SiteInlineAjaxController.php 1 addition, 1 deletion...t/backend/Classes/Controller/SiteInlineAjaxController.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSiteLanguage.php 1 addition, 1 deletion...backend/Classes/Form/FormDataProvider/TcaSiteLanguage.php
- typo3/sysext/core/Classes/Command/SiteListCommand.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Command/SiteListCommand.php
- typo3/sysext/core/Classes/Localization/LanguageServiceFactory.php 1 addition, 1 deletion...sext/core/Classes/Localization/LanguageServiceFactory.php
- typo3/sysext/core/Classes/Localization/Locale.php 23 additions, 6 deletionstypo3/sysext/core/Classes/Localization/Locale.php
- typo3/sysext/core/Classes/Localization/Locales.php 2 additions, 3 deletionstypo3/sysext/core/Classes/Localization/Locales.php
- typo3/sysext/core/Classes/Routing/Aspect/LocaleModifier.php 2 additions, 2 deletionstypo3/sysext/core/Classes/Routing/Aspect/LocaleModifier.php
- typo3/sysext/core/Classes/Routing/Aspect/StaticValueMapper.php 2 additions, 2 deletions.../sysext/core/Classes/Routing/Aspect/StaticValueMapper.php
- typo3/sysext/core/Classes/Site/Entity/SiteLanguage.php 7 additions, 7 deletionstypo3/sysext/core/Classes/Site/Entity/SiteLanguage.php
- typo3/sysext/core/Tests/Unit/Routing/SiteMatcherTest.php 16 additions, 16 deletionstypo3/sysext/core/Tests/Unit/Routing/SiteMatcherTest.php
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php 3 additions, 3 deletions...ntend/Classes/Controller/TypoScriptFrontendController.php
- typo3/sysext/frontend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php 4 additions, 3 deletions...ion/TypoScript/ConditionMatching/ConditionMatcherTest.php
Please register or sign in to comment