Bug #74498
closed
PHP setlocale() should be called in \TYPO3\CMS\Lang\LanguageService::init()
Added by Michiel Roos over 8 years ago.
Updated about 5 years ago.
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.
- Status changed from New to Under Review
To test:
- Choose a different language in your user settings;
- Set TS setup: module.tx_belog.settings.dateFormat = %e %B %Y
- Look at the dates in the System Log module
- OR
- Set $TYPO3_CONF_VARS['SYS']['ddmmyy'] = '%e %B %Y';
- Set $TYPO3_CONF_VARS['SYS']['hhmm'] = '%H:%M';
- Look at the Backend Users module
Please be aware that date formatting is not handled by the fluid
viewhelper all over the backend. So testing this will make the tstamp
formatting in list mode look weird.
- Category set to Localization
- Status changed from Under Review to Needs Feedback
Review has been abandoned. Can you check if the issue still needs fixing?
- Status changed from Needs Feedback to Rejected
No feedback for 90 days. Will close this issue now - feel free to ping me @michiel if you feel this should be addressed further.
Also available in: Atom
PDF