[PATCH] Add support for JEDEC/metric standards to KLocale::formatByteSize

Chusslove Illich caslav.ilic at gmx.net
Sun Jul 12 14:05:33 BST 2009


>> [: Michael Pyne :]
>> [...] so the other thing I'd like is to go through and correct
>> applications to use formatByteSize where appropriate. I can run grep as
>> well as anyone else so I suppose I can work on this.
>
> [: Thiago Macieira :]
> This is the first part of your point #2 above, which is the only part I
> agree with.

(I'm in a furball too much to comment on the primary proposal, so just about
this.)

I agree such methodic use of formatByteSize() would be nice to have. But for
that we'd anyway need one more formatByteSize(), which would take the
desired, khm, magnitude of unit (as the one in Michael's patch).

We'd also need an equivalent method for unit/sec amounts, say,
formatByteRate(). Currently there are some examples like
i18n("%1/s", formatByteSize(...)), which is rather ungainly.

-- 
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090712/251fbea8/attachment.sig>


More information about the kde-core-devel mailing list