This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2b 2/2][BZ #13853] Replace Bash-only $"msgid" with gettextf


On Mon, Nov 26, 2012 at 10:38:51AM +0100, Andreas Schwab wrote:
> "P. J. McDermott" <pjm@nac.net> writes:
> 
> > This patch isn't really as major as the diffstat and proposed change log
> > entries make it seem.  It rather simply defines _gettext and gettextf
> > and replaces $"msgid" quoting, e.g.:
> >
> >     s/printf \$"/gettextf "/; s/printf >&2 \$"/gettextf >&2 "/;
> 
> You also need to update the xgettext rules in po/Makefile so that the
> tranlatable strings are actually found.

That is, --keyword= --keyword=gettextf have to be added to
xgettext --language=Shell.  The former is needed to disable the default
keyword specifications because we use gettext '' to test whether gettext
is available and without that xgettext would add msgid "" to the output.


-- 
ldv

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]