[!!!][FEATURE] Support IEC/SI units in file size formatting 91/40291/12
authorPierrick Caillon <pierrick.caillon@plan-net.fr>
Tue, 16 Jun 2015 11:35:01 +0000 (13:35 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 17 Jun 2015 16:51:40 +0000 (18:51 +0200)
commit20fa75145fe174bd8d27179f6ff6cf2b74abc1dd
tree547a45b81646d52b49bf647c83185d3299446ccf
parent95f6df6ee963f63631eac0fca382b6a0dcb0a18c
[!!!][FEATURE] Support IEC/SI units in file size formatting

The new labels "iec" and "si" are added to GeneralUtility::formatSize,
where "iec" is the new default label.

A new parameter "base" has been added for specifying the base unit
multiplier expecting 1000 and 1024 as value and defaulting to 1024
when using the old labels.

Resolves: #22175
Releases: master
Change-Id: Iaa255f639b0421e508f561557a6c6b2e2b226bc9
Reviewed-on: http://review.typo3.org/40291
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Tests/Unit/Form/Element/NoneElementTest.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Documentation/Changelog/master/Feature-22175-SupportIecSiUnitsInFileSizeFormatting.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php