Project

General

Profile

Actions

Bug #74498

closed

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

Added by Michiel Roos about 8 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
Localization
Target version:
-
Start date:
2016-03-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF