Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

units displayed are inconsistent with the Units Policy #447

Open
dbungert opened this issue Oct 26, 2021 · 3 comments · May be fixed by #2207
Open

units displayed are inconsistent with the Units Policy #447

dbungert opened this issue Oct 26, 2021 · 3 comments · May be fixed by #2207

Comments

@dbungert
Copy link
Collaborator

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
Copy link
Contributor

jpnurmi commented Nov 8, 2021

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. 👀

@jpnurmi
Copy link
Contributor

jpnurmi commented Nov 8, 2021

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

@CarlosNihelton
Copy link
Contributor

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?

jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 4, 2023
jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 4, 2023
jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 4, 2023
jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 4, 2023
@jpnurmi jpnurmi linked a pull request Jul 4, 2023 that will close this issue
jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 5, 2023
jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants