RPM Community Forums

Mailing List Message of <rpm-devel>

xgettext doesn't understand defines

From: Göran Uddeborg <goeran@uddeborg.se>
Date: Sat 02 Feb 2008 - 11:45:46 CET
Message-ID: <18340.18906.994022.395269@mimmi.uddeborg.se>
Göran Uddeborg writes:
>     fprintf(fp, _("%s (" RPM_NAME ") %s\n"), __progname, rpmEVR);
> 
> Unfortunately, xgettext ... doesn't expand RPM_NAME.

Just so noone misunderstands:  Since RPM_NAME is defined at configure
time, it wouldn't help if xgettext could expand in this particular
case.  But even if RPM_NAME would have been #define:d on the line
above, xgettext would have failed.  So there are two problems in the
above example.
Received on Sat Feb 2 11:45:51 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.