Skip to content

Switch from binary bytes to SI-units #1565

@elrido

Description

@elrido

The problem

As per discussion in #1564 major OS UIs now use 1000-based SI-units for file sizes (1 kB = 1000 B, 1 MB = 1000 kB, ...) instad of the "traditional" binary bytes (1 kiB = 1024 B, 1 MiB = 1024 kiB, ...). Currently all byte-size related messages towards users in PrivateBin use binary units.

The solution

In #1564, new translations for the SI-units get added to the translation files, but these remain unused for now. Translators can start work on translating these as appropriate. With the next major release, we will switch all displayed use of size units to SI-units and can remove the binary units from the translation files.

Alternatives

Keeping the binary units on display.

Additional context

Apple uses 10-based file size units for its modern devices according to their documentation

I have not found any Microsoft documentation regarding the file size units that it uses in its system. But, in the NTFS documentation they operate with terabytes and petabytes, which indicates that Windows also uses 10-base units for size measurement.

According to the Ubuntu wiki they also recomend to use 10-based units by default. Maybe on Linux it depends on the distributive.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions