qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Translation of strings in QEMU w/ gettext ?


From: Paolo Bonzini
Subject: Re: [Qemu-devel] Translation of strings in QEMU w/ gettext ?
Date: Tue, 02 Jun 2015 16:53:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0


On 02/06/2015 14:56, Daniel P. Berrange wrote:
> In my work on TLS encryption, I've been blindly adding gettext markers
> around all error messages I raise. eg error_setg(errp, _("foo bar"));
> I've done this out of habit, since most apps I work on translate all
> strings that could end up visible by a user.
> 
> Looking again at existing QEMU codebase though, I notice that adding
> gettext _("...") markers is the exception, not the rule.

I think that _("...") markers should remain the exceptions.  However, we
could autoextract for example error_setg/error_setg_errno's message
arguments into PO files.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]