Issue Bug Rejected

#74498PHP setlocale() should be called in \TYPO3\CMS\Lang\LanguageService::init()

Michiel Roos 03/08/16, 13:40 updated 11/04/19, 17:36

Description

PHP setlocale() should be called in \TYPO3\CMS\Lang\LanguageService::init()

Of course with proper checking of the available system locales.

This will make it possible to call strftime and have date, time and numbers formatted according to the preferred locale.

We will need a mapping in the \TYPO3\CMS\Core\Localization\Locales object to map the $GLOBALS[‘BE_USER’]->uc[‘lang’] field to a supported locale code.

Reviews 1