Actions
Bug #101211
closedGeneralUtility::formatSize does not use correct thousands separator
Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-06-30
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
The class GeneralUtility::formatSize
does not use the correct thousands separator based on the language of the current page.
This was working in TYPO3 v9 and stopped working in TYPO3 v10:
https://forge.typo3.org/issues/82491
https://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/0d6f0460798048aa22ebaf57a254ad22d52a9d88/diff/typo3/sysext/core/Classes/Utility/GeneralUtility.php
setlocale(LC_NUMERIC, 'de_DE.utf-8')
is not called anymore.
Steps to reproduce:
- Create a Site Configuration with german language (locale: de_DE.utf-8)
- Call
GeneralUtility::formatSize(1024*1024*2.5)
within your site extension code
Expected output2,50 Mi
Actual output2.50 Mi
Actions