canonical / ubuntu-desktop-installer

Ubuntu Desktop Installer
GNU General Public License v3.0
536 stars 94 forks source link

units displayed are inconsistent with the Units Policy #447

Open dbungert opened 2 years ago

dbungert commented 2 years ago

https://wiki.ubuntu.com/UnitsPolicy

We appear to be using SI standard unit labels with base-2 units. Let's update things so that we are consistent with the policy.

Example: a partition of 40000028672 bytes is displayed as having size "37GB" - by this policy that size when rounded would be "40GB" or "37GiB"

jpnurmi commented 2 years ago

On a related note, we need to be able to translate unit labels.

Currently, human-readable file sizes are provided by the filesize package, which mixes hard-coded SI standard unit labels with base-2 units. :eyes:

jpnurmi commented 2 years ago

The implementation of the data_size package looks better but it has hardcoded labels too.

CarlosNihelton commented 2 years ago

The implementation of the data_size package looks better but it has hardcoded labels too.

Could we fork that one, add translation capabilities and make a pull request to the author?