[libvirt] [PATCH] libvirtd: mark strings for translation, including --help output

Eric Blake eblake at redhat.com
Thu May 20 20:10:42 UTC 2010


On 05/20/2010 01:42 PM, Jim Meyering wrote:
>>
>> Should we also do a followup that passes argv[0] to this method, so that
>> the error message can start with the program name?
> 
> Might as well.
> patch below.

Didn't see any signature change to daemonForkIntoBackground...

>> Missed a string.  This should be _("(disabled in ./configure)").
> 
> Thanks.  Fixed in the v2 below.

Confirmed.

> 
>>>          default:
>>> -            fprintf (stderr, "libvirtd: internal error: unknown flag: %c\n",
>>> +            fprintf (stderr, _("libvirtd: internal error: unknown flag: %c\n"),
>>
>> And here, should we be using %s/argv[0] instead of hard-coding the name
>> "libvirtd"?
> 
> Yes.

ACK to 1/2, but let's respin 2/2 to tweak daemonForkIntoBackground to
take another parameter...

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100520/84743ffd/attachment-0001.sig>


More information about the libvir-list mailing list