Skip to content
Snippets Groups Projects
Commit 5a1bde5b authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[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: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent ff4bc311
Branches
Tags
Showing
with 63 additions and 46 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment