From: Karel Zak Date: Thu, 10 Dec 2009 12:14:55 +0000 (+0100) Subject: docs: add ngettext() into TODO file X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f2853af7c115dfb92ce17db7ea324a4f0fbe7c;p=util-linux docs: add ngettext() into TODO file Signed-off-by: Karel Zak --- diff --git a/TODO b/TODO index bcedb9eb..cc3c0f9f 100644 --- a/TODO +++ b/TODO @@ -45,6 +45,15 @@ fdisk(s) misc ---- + * use ngettext() for strings with plurals, for example + + /* include/nls.h */ + #define P_(id, id_plural, n) ngettext(id, id_plural, n) + + printf(P_("%d used sector", + "%d used sectors", sectors), + sectors); + * check for program_invocation_short_name in ./configure.ac and add lib/progname.c fallback for libc without this feature (for example use the 1st field from /proc/#/cmdline)