42900[TASK] Set "si" as default for filesizes
Commit message
Review
-
Code review CR 0
-
Verified V 0
Issues 1
Files 9
- typo3/sysext/backend/Classes/Clipboard/Clipboard.php+1 −1
- typo3/sysext/backend/Tests/Unit/Form/Element/NoneElementTest.php+3 −3
- typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php+1 −1
- typo3/sysext/core/Classes/Utility/GeneralUtility.php5+3 −3
- typo3/sysext/core/Configuration/DefaultConfiguration.php2+1 −0
- typo3/sysext/core/Documentation/Changelog/master/Important-69380-SetSIAsTheDefaultUnitFileSizes.rst1new+10 −0
- typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php3binary
- typo3/sysext/css_styled_content/static/constants.txt+1 −1
- typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php+3 −3
Review log 62
Show 37 earlier messages
-
Stefan Froemken uploaded patch set 1 08/28/15, 07:24
-
Mathias Brodala commented on patch set 1 08/28/15, 07:30
configurablewithin the install toolFurthermore a "B" is appended to all labels. -
Stefan Froemken uploaded patch set 2 08/28/15, 07:36
-
Stefan Froemken uploaded patch set 3 08/28/15, 07:39
-
Stefan Froemken uploaded patch set 4 08/28/15, 07:46
-
Andreas Kienast voted on patch set 4 CR +1 08/28/15, 07:51
-
Morton Jonuschat updated the commit message in patch set 5 08/28/15, 08:48
-
Andreas Kienast voted on patch set 5 CR +1 08/28/15, 08:49
-
Morton Jonuschat commented on patch set 5 V -1 08/28/15, 08:55
Unit tests fail. On it -
Morton Jonuschat uploaded patch set 6 08/28/15, 09:02
-
Morton Jonuschat commented on patch set 6 CR +1 V +1 08/28/15, 09:02
Verified by unit tests -
Andreas Kienast voted on patch set 6 CR +1 09/01/15, 09:15
-
Wouter Wolters commented on patch set 6 CR -1 09/02/15, 16:57
failing unit tests in ext:form -
Morton Jonuschat uploaded patch set 7 09/02/15, 17:29
-
Morton Jonuschat commented on patch set 7 09/02/15, 17:30
Rebased & adjusted EXT:form expectations -
Wouter Wolters voted on patch set 7 CR +1 09/02/15, 20:30
-
Morton Jonuschat voted on patch set 7 CR +1 V +1 09/02/15, 20:32
-
Frank Nägler commented on patch set 7 CR -1 09/04/15, 14:20
Feature-22175-SupportIecSiUnitsInFileSizeFormatting.rstsince this change was releases with 7.4 I think we have to add a new rst file. Change the old (released) rst file is not a good idea. Also I don't think that this is a bugfix, it is a task -
Andreas Kienast commented on patch set 7 09/25/15, 06:21
ping -
Morton Jonuschat uploaded patch set 8 09/25/15, 08:58
-
Nicole Hummel voted on patch set 8 CR +1 09/25/15, 09:05
-
Frank Nägler voted on patch set 8 CR +1 09/25/15, 09:06
-
Nicole Hummel commented on patch set 8 V +1 09/25/15, 09:13
I would however opt to remove the $GLOBALS['TYPO3_CONF_VARS']['SYS']['filesizePrefix'] configuration completly to make life easier -
Nicole Hummel commented on patch set 8 09/25/15, 09:16
Fine with configuration as the labels were introduces as new feature just a while ago with https://review.typo3.org/40291/ -
Frank Nägler commented on patch set 8 V -1 09/25/15, 09:23
on it -
Frank Nägler uploaded patch set 9 09/25/15, 09:28
-
Frank Nägler voted on patch set 9 CR +1 V +1 09/25/15, 09:29
-
Nicole Hummel voted on patch set 9 CR +1 V +1 09/25/15, 09:37
-
Pierrick Caillon commented on patch set 9 CR -1 09/25/15, 09:51
GeneralUtility.php:908I will not recommend adding the 'B' suffix explicitly because it can vary with language. For example, in French, it is the character 'o'. Impact other changes. -
Frank Nägler commented on patch set 9 CR -1 09/25/15, 10:00
GeneralUtility.php:908Replyyou are right, good catch, thx. I will change it! -
Frank Nägler uploaded patch set 10 09/25/15, 10:03
-
Frank Nägler voted on patch set 10 CR +1 V +1 09/25/15, 10:03
-
Nicole Hummel commented on patch set 10 V -1 09/25/15, 10:07
Failing unit tests now. Will push an update -
Nicole Hummel uploaded patch set 11 09/25/15, 10:09
-
Nicole Hummel voted on patch set 11 CR +1 V +1 09/25/15, 10:09
-
Morton Jonuschat commented on patch set 11 CR -1 V -1 09/25/15, 10:22
We now have a mix of output with 'B' appended for SI units, without 'B' for IEC units and thus just the prefix as output at some places in the core
-
Morton Jonuschat commented on patch set 11 CR 0 V 0 09/25/15, 10:31
Undecided on this after discussion on slack -
Pierrick Caillon commented on patch set 11 09/25/15, 10:36
I think the patch should focus on changing the default and providing the global configuration for the default, thus reverting some of the changes. The configuration should include the base if not a keyword but label list. Or includes the way to have the unit name translated correctly. -
Jan Helke commented on patch set 11 CR -1 09/25/15, 15:44
DefaultConfiguration.php:235Isn't that a suffix? -
Morton Jonuschat commented on patch set 11 09/25/15, 15:46
DefaultConfiguration.php:235ReplyNope, k, M, G (as well as Ki, Mi, Gi) are actually prefixes to a unit like 'B' -
Jan Helke commented on patch set 11 CR 0 09/25/15, 16:02
OK. I see. -
Michael Oehlhof voted on patch set 11 CR +1 09/25/15, 20:42
-
Michael Oehlhof voted on patch set 11 V +1 09/26/15, 00:46
-
Frank Nägler commented on patch set 11 CR -1 09/28/15, 08:04
the current state is inconsistent. KB vs Ki etc. We should use KB and KiB, GB and GiB etc.... The current implementation is not multilanguage ready and need more adjustments. But the solution in this patch use two different systems which make no sense. -
Morton Jonuschat uploaded patch set 12 09/29/15, 03:05
-
Morton Jonuschat commented on patch set 12 CR +1 V +1 09/29/15, 03:10
After discussing this further on slack we decided to revert back to patchset 9. As a strong default labels based on the 'B' as acronym for 'bytes' are correct in a large part of the world and understood by an even wider audience. Usages in the core that should be translated should be tacked in a dedicated issue, this method provides the means for that by passing in a set of translated labels. -
Stefan Froemken commented on patch set 12 V -1 09/29/15, 04:30
Before merging it. I have found some more old labels in css_styled_content: tt_content.uploads.20.renderObj.40.bytes.labels > Maybe we should remove that line and it constant, too. -
Morton Jonuschat commented on patch set 12 10/02/15, 06:21
Stefan, are you taking care of this? -
Stefan Froemken uploaded patch set 13 10/05/15, 11:51
-
Morton Jonuschat uploaded patch set 14 10/16/15, 17:35
-
Morton Jonuschat voted on patch set 14 CR +1 V +1 10/16/15, 17:36
-
Xavier Perseguers commented on patch set 14 10/16/15, 18:28
GeneralUtilityTest.php:7971 does not lead to plural form for "Bytes" ("S") -
Morton Jonuschat commented on patch set 14 10/16/15, 18:47
GeneralUtilityTest.php:797ReplyformatSize() has no notion of inflections, singular plurals forms. If you look at the changeset you'll see that "bytes" has been removed from different places in the code that didn't care if it was used in singular or plural form. So while it's grammatically incorrect for this one case of „1 Byte“ I don't see implementing singular and plural forms in the scope of this patch. If we do we need to tackle multi-language too as we would then have to cope with up to 6 forms of pluralization depending on the language. -
Stefan Neufeind commented on patch set 14 10/17/15, 09:21
I wondered if international they also use the uppercase "Bytes" or would lowercase it. And that further lead me to the thought if those units are maybe locale-dependent? If we'd need a locale for those default-labels maybe please file a new issue so that can be taken care of in a separate patch.GeneralUtility.php:948suffix instead of prefixImportant-69380-SetSIAsTheDefaultUnitFileSizes.rst:10Should we add that "B" or in the case of just bytes then "Bytes" is always appended?GeneralUtilityTest.php:797Replyfine with me with just the plural, for the scope of this patch -
Stefan Neufeind commented on patch set 14 CR -1 10/17/15, 09:21
prefix -> suffix -
Andreas Kienast commented on patch set 14 10/17/15, 13:00
Nope, it's a prefix of the unit "bytes". We had that multiple times now :) -
Stefan Neufeind commented on patch set 14 10/17/15, 13:14
It says "filesizePrefix" and it's appended to the actual size. Also the "B" for "Bytes" is in the default-label itself now. But feel free to override me -1. -
Morton Jonuschat commented on patch set 14 10/17/15, 13:26
As Andreas said the discussions about I18n, l10n, prefix/suffix etc. have all been had multiple times. To be totally correct feel free to rename it to filesizeUnitPrefix or something like that, change the upper-/lowercase of the words and enhance the docs as much as you feel the need. Too much time has been wasted on this simple change as is. Now I'll excuse myself from any further discussion on this topic, ping me if you need a final review/verification.. -
Alexander Opitz commented on patch set 14 CR -1 10/30/15, 09:20
One nitpick.GeneralUtility.php:944The SI Prefix for kilo is "k" in lower case. (The KB defined in JEDEC has 1024 as base)GeneralUtility.php:948ReplyIs filesizePrefixStandard better? As you can only select a standard (iec or si). -
Morton Jonuschat wrote 10/30/15, 09:21
Removed the following approvals: * Code-Review+1 by Morton Jonuschat <m.jonuschat@mojocode.de> * Verified+1 by Morton Jonuschat <m.jonuschat@mojocode.de> -
Morton Jonuschat abandoned the change 03/31/16, 21:02
due to inactivity