[PATCH v2b 2/2][BZ #13853] Replace Bash-only $"msgid" with gettextf
Dmitry V. Levin
ldv@altlinux.org
Mon Nov 26 20:51:00 GMT 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121126/eb05639e/attachment.sig>
More information about the Libc-alpha
mailing list