From: Jiri Denemark Date: Thu, 20 Feb 2025 12:06:38 +0000 (+0100) Subject: virsh: Make messages printed by vshError properly translatable X-Git-Tag: v11.1.0-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddef7271fd0c33cdadb5794d68045c0ddb7abe8e;p=thirdparty%2Flibvirt.git virsh: Make messages printed by vshError properly translatable Signed-off-by: Jiri Denemark Reviewed-by: Michal Privoznik --- diff --git a/tools/vsh.c b/tools/vsh.c index 1b650bdd9b..64507fe560 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -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); }