--
You received this message because you are subscribed to the Google Groups "firef...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firefox-dev...@mozilla.org.
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/firefox-dev/2aaf3f8a-ed07-4cde-8b6c-fd3299bf2676%40zipdox.net.
On Sun, 17 Dec 2023 at 16:23, Dave Townsend <dtow...@mozilla.com> wrote:
> macOS finder: 1,000 divisor, SI units
> Safari: 1,000 divisor, SI units
> Windows explorer: 1,024 divisor, SI units
> Chrome: 1,024 divisor, SI units.
> Edge: 1,024 divisor, SI units.
> Lightroom: 1,024 divisor, SI units.
I don’t think calling those SI units is accurate. Traditional byte
unit prefixes were K and M — note the capital K for 1024, while SI
uses a small k.
macOS finder: 1,000 divisor, SI units Safari: 1,000 divisor, SI units Windows explorer: 1,024 divisor, SI units Chrome: 1,024 divisor, SI units. Edge: 1,024 divisor, SI units. Lightroom: 1,024 divisor, SI units.
Every piece of software you listed is proprietary. Edge is also
just MS Chrome.
I just looked around my system to see what some software I use
does.
qBittorrent: 1024 divisor, binary prefixes
VLC: 1024 divisor, binary prefixes
mpv: 1024 divisor, binary prefixes
Temo: choice between 1000 divisor with decimal prefixes and 1024
divisor with binary prefixes
Thunar: 1024 divisor, binary prefixes
Nauilus: 1000 divisor, decimal prefixes
GParted: 1024 divisor, binary prefixes
GNOME Disks: 1000 divisor, decimal prefixes
I think you're overlooking a lot of software and users. Just
because some companies are doing it wrong or handing onto ancient
traditions, doesn't mean we should do the same.
On Sun, 17 Dec 2023 at 16:23, Dave Townsend <dtow...@mozilla.com> wrote:macOS finder: 1,000 divisor, SI units Safari: 1,000 divisor, SI units Windows explorer: 1,024 divisor, SI units Chrome: 1,024 divisor, SI units. Edge: 1,024 divisor, SI units. Lightroom: 1,024 divisor, SI units.Every piece of software you listed is proprietary. Edge is also just MS Chrome.
Marco, Dave and I discussed this topic today.
While we appreciate you taking the time to contribute to Firefox we believe changing from kB/KB to KiB (or changing the divisor) is a bad idea - and a pref would make it worse. No amount of tests will make doing this acceptable and we will not accept a patch that does this.
As with any patch, this is a cost/benefit trade-off. In terms of the implementation cost of a pref for this, we would:
need to add the pref
need to duplicate many of these strings (not a precise search due to the limitations of regular expressions, but a bunch more than "just" the downloads panel. It’s also worth noting that as discussed in the bug, there are more subtle arguments to be had about whether all of these pieces of UI should use the same unit or not, so we could end up with multiple prefs and different units, adding yet more complexity)
duplicate all the implementations referencing those strings
write tests for all of that
make all our volunteer localizers localise all those duplicated strings (and hope they don't get any mixed up)
make QA verify and document the possible configurations and update all downloads-related testcases
have to maintain all of that forever
In terms of benefits, all browsers other than Safari, and all OSes, show JEDEC units. That's the ecosystem that Firefox is a part of. If we changed the default behaviour this would likely confuse users because we would no longer be aligned with that ecosystem.
If we kept the new behaviour behind a pref, most people would not notice anything and probably still file bugs about this once every few years because they wouldn't know the setting exists or complain about its defaults. Settings are a good option for things that have significant impact on the user’s experience and are in broad demand, not for small tweaks like this.
The one thing that we could consider is changing the fluent references to use `kB` instead of `KB` on platforms that didn’t opt for JEDEC (e.g. Linux), for strings where this is appropriate. Doing so would require defining a new term for KB with a `PLATFORM()` selector, updating the downloads strings to use the new term, and make sure that any contexts that use those strings also load the ftl file that defines the new term. Then we’d need to progressively update other uses of KB/kB to use the new term as well. That’s still very much a non-trivial change, though we would take a contributed patch.
Marco (module owner of the Downloads code)
Dave & Gijs (module co-owners of Firefox Desktop)
--
You received this message because you are subscribed to the Google Groups "firef...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firefox-dev...@mozilla.org.
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/firefox-dev/a3ba7cd2-be57-4d88-ac8d-3c54ed512d58%40zipdox.net.