summaryrefslogtreecommitdiff
path: root/misc/nls-enable.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-10-09 17:08:47 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-09 17:54:23 -0400
commit3fcd8fe8acb269598390b35bbf6e4247d10bc64e (patch)
treeb47c1e0269e97c862dc428a5ed413443ba1c5b12 /misc/nls-enable.h
parentd4d03cd3ffe4cb09f2206f1def1361be25761523 (diff)
downloade2fsprogs-3fcd8fe8acb269598390b35bbf6e4247d10bc64e.tar.gz
Fix more spelling errors found by translators and add pluralization
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/nls-enable.h')
-rw-r--r--misc/nls-enable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/nls-enable.h b/misc/nls-enable.h
index e365fbdd..a91dcc13 100644
--- a/misc/nls-enable.h
+++ b/misc/nls-enable.h
@@ -7,6 +7,7 @@
#else
#define N_(a) (a)
#endif
+#define P_(singular, plural, n) (ngettext (singular, plural, n))
#ifndef NLS_CAT_NAME
#define NLS_CAT_NAME "e2fsprogs"
#endif
@@ -16,4 +17,5 @@
#else
#define _(a) (a)
#define N_(a) a
+#define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural))
#endif