summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-03-01 23:31:56 +0100
committerJan Kara <jack@suse.cz>2012-03-01 23:31:56 +0100
commit3ff187335dcc4862d109cbe8c8c4d7535e969d91 (patch)
tree5eabc2cf90ec3749a8bcb1f416608489966af568
parentfe2675fcd256dbd5fd33c10a94ed6c58f4bb5c5b (diff)
downloadlinuxquota-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.in2
-rw-r--r--quota.h8
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 \
diff --git a/quota.h b/quota.h
index 0491975..ac034d0 100644
--- a/quota.h
+++ b/quota.h
@@ -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"), \
}
/*