[libvirt PATCH 5/6] qemu: implement virDomainGetMessages API

Pino Toscano ptoscano at redhat.com
Fri Feb 5 14:34:05 UTC 2021


On Friday, 5 February 2021 15:18:30 CET Daniel P. Berrangé wrote:
> +        for (i = 0; i < VIR_DOMAIN_TAINT_LAST; i++) {
> +            if (vm->taint & (1 << i)) {
> +                (*msgs)[n++] = g_strdup_printf(
> +                    "%s: %s", _("tainted"),

Please translate the whole string, instead of composing a string
puzzle, e.g.: g_strdup_printf(_("tainted: %s"), msg)

There are languages that may need to tweak capitalization and/or
punctuation of text; for example, in French a space is needed
before and after : (colon).

> +    if (!flags || (flags & VIR_DOMAIN_MESSAGE_DEPRECATION)) {
> +        nmsgs += vm->ndeprecations;
> +        *msgs = g_renew(char *, *msgs, nmsgs+1);
> +
> +        for (i = 0; i < vm->ndeprecations; i++) {
> +            (*msgs)[n++] = g_strdup_printf(
> +                "%s: %s",
> +                _("deprecated configuration"),
> +                vm->deprecations[i]);

Ditto.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210205/317accce/attachment-0001.sig>


More information about the libvir-list mailing list