Bug #87101

in TYPO3 v9.5 user defined locales can not be added by an extension any more

Added by Sebastian Mazza 3 days ago. Updated about 19 hours ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-12-07
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

At least in TYPO3 v. 7.x ist was possible for an extension to add a new local definition to the the TYPO3 localisation system.

This was posible by adding

$GLOBALS['TYPO3_CONF_VARS']['SYS']['localization']['locales']['user']['en'] = 'English';

to the ext_localconf.php of an extension.
(See: https://docs.typo3.org/typo3cms/CoreApiReference/latest/ApiOverview/Internationalization/ManagingTranslations.html#custom-languages)

In TYPO3 v9.5 this does not work any more because the method
typo3/sysext/core/Classes/Localization/Locales.php::initialize() which inizaliazes all the locales,
is called from typo3/sysext/core/Classes/Core/Bootstrap.php in line 123 but the ext_localconf.php are included after that in line 138 of the Bootstrap.php::init() method.

History

#1 Updated by Josef Glatz 3 days ago

  • Is Regression set to Yes

#2 Updated by Gerrit Code Review 1 day ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59068

#3 Updated by Gerrit Code Review about 19 hours ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59068

Also available in: Atom PDF