Deprecation: #99905 - Site language "iso-639-1" setting
See forge#99905
Description
A language configuration defined for a site has had various settings, one of
them being
iso-
(also known as "twoLetterIsoCode").
This setting was previously introduced to define the current ISO 639-1 code, which
was different from the
locale
or the
typo3Language
setting. However,
this information is now properly retrieved with the method:
Site
.
Since TYPO3 v12 it is not necessary to set this property in the site configuration
anymore, and it has been removed from the backend UI. The information is now automatically
derived from the
locale
setting of the site configuration.
This property originally came from an option in TypoScript called
config.
which in turn was created in favor of
the previous
sys_
database table. The TYPO3 Core never evaluated this
setting properly before TYPO3 v9.
As a result, the amount of options in the user interface for integrators is reduced.
The PHP method
Site
serves no purpose
anymore and is deprecated.
This also affects the TypoScript
get
property
site
,
and the TypoScript condition
[site
.
Impact
Using the TypoScript settings or the PHP method will trigger a PHP deprecation notice.
An administrator cannot select a value for the
iso-
setting anymore
via the TYPO3 backend. However, saving a site configuration via the
TYPO3 backend will still keep the
iso-
setting so no information is lost.
Affected installations
TYPO3 installations actively accessing this property via PHP or TypoScript.
Migration
No migration is needed as the explicit option is still evaluated. It is however
recommended to check if the setting is really necessary, and if the first part of the
locale
setting matches the
iso-
setting. If so, the line with
iso-
can be removed.
As for TypoScript, it is recommended to use
site
instead of
site
.