From 3ff187335dcc4862d109cbe8c8c4d7535e969d91 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Thu, 1 Mar 2012 23:31:56 +0100 Subject: Add quota type names to message catalogue Add gettext magic so that quota type names get to message catalogue. Signed-off-by: Jan Kara --- Makefile.in | 2 +- 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 \ 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"), \ } /* -- cgit v1.2.3