Project

General

Profile

Actions

Task #94347

closed

Resolve inconsistency in naming of Site Configuration language attributes and TypoScript naming for accessing language attributes

Added by J. Peter M. Schuler over 3 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Won't have this time
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-06-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Since 9LTS (10LTS and master, too) Site Configuration has a language option for defining the flag and the twoLetterIsoCode.
In Site Configuration it is called `flag`: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/SiteHandling/AddLanguages.html#flag
In TypoScript one can access this via `flagIdentifier`: https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/DataTypes/Properties/GetText.html#sitelanguage

In Site Configuration it is called `iso-639-1`: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/SiteHandling/AddLanguages.html#iso-639-1
In TypoScript one can access this via `twoLetterIsoCode `: https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/DataTypes/Properties/GetText.html#sitelanguage

As all other attributes seem to be 1:1 the same identifier, this could perhaps be harmonised. Of course this would need a converter/fallback/migration and I can't decide which might make more sense to adapt.

Actions

Also available in: Atom PDF