#95807"default" language code
Description
Using “default” as language code if none was selected in the site configuration was a bad idea because the language codes were defined as ISO language codes (“de”/“en” or “DE_CH”/“en_US”) in TYPO3 and had been used since years. Now, instead of having an empty string or NULL if the language code isn’t set, “default” is returned and we need to check in several places now using
!in_array( $lang, ['', 'default'] )
On the other hand, there’s no clear advantage of using “default” instead of an empty string. Instead, this is an invalid ISO language code and we had to adapt all our checks. For standard compliance, we would suggest to think again about that decision and maybe revert it in TYPO3 12.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.