Conversation
|
I'm not sure if anything further needs to be done for the newly added translate strings? |
|
I'm -1 on this, we have to use the right unit. |
|
From the GLib documentation: |
|
@tintou yes I understand your -1 on this :-) This proposed PR was for the "average everyday layperson" who might see "GiB" for memory and "GB" for storage and wonder what the "GiB" indicates? For people who don't know/understand the difference between IEC/SI mebi versus mega bytes , for example? |
|
If people don't know the difference I feel like they can search on their own if they are really interested in this :) I'm sure that if they don't understand it, they are anyway seeing the unit as a opaque thing so there is no difference between MiB and MB for them 🙃 |
|
@tintou how does it look now? (both code and screenshot?) |
Personally I don't agree with "no difference between SI and IEC for ordinary users" - I think (I guess) average user knows what "MB" and "GB" are but not "MiB" and "GiB" which is why I prefer showing SI units for the memory label too, but not a strong opinion. |
|
Note to self - TODO update comment to reflect change in whether to show IEC unit. |
|
I just looked at my Windows and Android devices and they show the memory capacity unit as GB and not GiB even though the value is of course IEC. I searched on Google for screenshots of system information sections on macOS and iOS and there too it's GB instead of GiB. I know this is a nitpick PR to propose but whenever I look at the current hardware view in OS 6.1 showing "15.7 GiB memory" instead of the proposed "16 GB memory" it triggers some sort of OCD in me :-P |
|
Just my 2¢ but I think it’s a good change. I can’t think of the last time I saw a computer advertised using GiB of RAM. I don’t have any evidence at all to back this up, but I think a "layperson" would be more confused seeing 15.7 GiB and wondering what happened to the other 0.3. I don’t like the argument that a user should go look up the difference themselves. Is GB the most technically accurate? No, but it doesn’t need to be in this case. In this context, I would expect my system to report in a format that matches how it would be advertised or generally discussed. If someone really cares that much, there are other system utilities to find exact numbers and whatnot. |
|
Updated the PR back to the original proposal like here: #252 (comment) |
|
Thanks @lenemter for the approval. I'll wait for maybe @danirabbit to comment on whether this change gets merged? |
tintou
left a comment
There was a problem hiding this comment.
If the consensus is to merge it (which I'm still not convinced), here are a few things to fix before
|
@vjr I've looked at GLib.format_size source code (https://github.com/GNOME/glib/blob/main/glib/gutils.c#L2837) and edited your function a bit to make it as translatable as GLib one: |


The
GLib.format_size ()function returns a single decimal place such as16.0 GiB(for memory) and512.1 GB(for storage) while this PR returns16 GBand512 GBinstead, with the intent of being user-friendly for the layperson. Returns "GB" instead of "GiB" (for example) even if IEC_UNITS is requested.Before:
After: