Project

General

Profile

Actions

Bug #87101

closed

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

Added by Sebastian Mazza over 5 years ago. Updated about 5 years ago.

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

100%

Estimated time:
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.

Actions

Also available in: Atom PDF