RPM Community Forums

Mailing List Message of <rpm-devel>

xgettext doesn't understand defines

From: Göran Uddeborg <goeran@uddeborg.se>
Date: Fri 01 Feb 2008 - 22:51:49 CET
Message-ID: <18339.38005.935003.830665@freddi.uddeborg.se>
In rpmqv.c ther is the code

    fprintf(fp, _("%s (" RPM_NAME ") %s\n"), __progname, rpmEVR);

Unfortunately, xgettext (apparently) doesn't expand RPM_NAME.  Only
the string "%s (" gets into the message catalogue.

A possible solution would be

    fprintf(fp, _("%s (%s) %s\n"), __progname, RPM_NAME, rpmEVR);

It would not translate the name.  But names are usually not
translated.

On the other hand, given that the string now contains no text, there
isn't much to translate.  So an even simplier solution would be

    fprintf(fp, "%s (" RPM_NAME ") %s\n", __progname, rpmEVR);
Received on Fri Feb 1 23:52:26 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.