]> granicus.if.org Git - neomutt/commit
handler.c: Partly fix plural message about attachment size
authorReis Radomil <reisradomil@fake-box.com>
Tue, 22 May 2018 14:16:12 +0000 (14:16 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 29 May 2018 03:03:35 +0000 (04:03 +0100)
commitd2efc2d7b2e0b96f56477d66d4da6efdbac6dd0b
tree454b0475359e690c6ac40bb71cf9c74ab87bd009
parent7ed302c19bd83376d7586755b2900eaed3fc7b88
handler.c: Partly fix plural message about attachment size

Use ngettext() to choose a (more) correct plural form for 'byte'
depending on the attachment size. There is a caveat though: We do not
print the size as number but as a prettified number, e.g.  2048 will be
printed as 2K. Some languages might inflect 'byte' different depending
on whether it is '1K byte' or '1024'. Sadly there is nothing we can do
about that in the moment (besides not using the prettified version but
that is not an option).
handler.c