1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

virsh: Make messages printed by vshError properly translatable

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Jiri Denemark 2025-02-20 13:06:38 +01:00
parent 575b3ea925
commit ddef7271fd

View File

@ -2128,9 +2128,7 @@ vshError(vshControl *ctl, const char *format, ...)
* printing to stderr will not interleave correctly with stdout
* unless we flush between every transition between streams. */
fflush(stdout);
fputs(_("error: "), stderr);
fprintf(stderr, "%s\n", NULLSTR(str));
fprintf(stderr, _("error: %1$s\n"), NULLSTR(str));
fflush(stderr);
}