diff options
author | Jan Kara <jack@suse.cz> | 2012-03-01 23:31:56 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-03-01 23:31:56 +0100 |
commit | 3ff187335dcc4862d109cbe8c8c4d7535e969d91 (patch) | |
tree | 5eabc2cf90ec3749a8bcb1f416608489966af568 | |
parent | fe2675fcd256dbd5fd33c10a94ed6c58f4bb5c5b (diff) | |
download | linuxquota-3ff187335dcc4862d109cbe8c8c4d7535e969d91.tar.gz |
Add quota type names to message catalogue
Add gettext magic so that quota type names get to message catalogue.
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | quota.h | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index 0b343a3..c81d7a9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -58,7 +58,7 @@ realclean: clobber -rm -f $(RPCSRC) po/*.mo pot: - xgettext -k_ -d pot *.c + xgettext -k_ -kN_ -d pot *.c *.h mo: po for n in $(shell ls po/*.po); do \ @@ -12,11 +12,13 @@ typedef int64_t qsize_t; /* Type in which we store size limitations */ /* * Definitions for the default names of the quotas files. + * N_ is gettext magic for static strings */ +#define N_(x) (x) #define INITQFNAMES { \ - "user", /* USRQUOTA */ \ - "group", /* GRPQUOTA */ \ - "undefined", \ + N_("user"), /* USRQUOTA */ \ + N_("group"), /* GRPQUOTA */ \ + N_("undefined"), \ } /* |