Project

General

Profile

Actions

Bug #95807

closed

"default" language code

Added by Aimeos no-lastname-given over 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF