summaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorKarel Zak2009-12-10 13:14:55 +0100
committerKarel Zak2009-12-10 13:14:55 +0100
commite1f2853af7c115dfb92ce17db7ea324a4f0fbe7c (patch)
treecd38d754cbfa64e842ba1652ede79d3f8d0cf681 /TODO
parentpo: fix msgid bugs (diff)
downloadkernel-qcow2-util-linux-e1f2853af7c115dfb92ce17db7ea324a4f0fbe7c.tar.gz
kernel-qcow2-util-linux-e1f2853af7c115dfb92ce17db7ea324a4f0fbe7c.tar.xz
kernel-qcow2-util-linux-e1f2853af7c115dfb92ce17db7ea324a4f0fbe7c.zip
docs: add ngettext() into TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'TODO')
-rw-r--r--TODO9
1 files changed, 9 insertions, 0 deletions
diff --git a/TODO b/TODO
index bcedb9eb7..cc3c0f9f8 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)