From: Jakub Bogusz Date: Tue, 30 Dec 2008 17:22:51 +0000 (+0100) Subject: Apply gettext translation to strings kept in format->{fmt, msg, type} X-Git-Tag: v3.0.0~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa42b46f627b9a71d6d70cc77702fb348bf5e89e;p=thirdparty%2Fxfsprogs-dev.git Apply gettext translation to strings kept in format->{fmt, msg, type} Reviewed-by: Christoph Hellwig --- diff --git a/repair/progress.c b/repair/progress.c index ff42f8221..c6630e524 100644 --- a/repair/progress.c +++ b/repair/progress.c @@ -339,16 +339,16 @@ print_final_rpt(void) if (report_interval) { switch(msgp->format->format) { case FMT1: - sprintf (msgbuf, *msgp->format->fmt, + sprintf (msgbuf, _(*msgp->format->fmt), tmp->tm_hour, tmp->tm_min, tmp->tm_sec, - msgp->format->msg, sum, - *msgp->total, *msgp->format->type); + _(msgp->format->msg), sum, + *msgp->total, _(*msgp->format->type)); break; case FMT2: - sprintf (msgbuf, *msgp->format->fmt, + sprintf (msgbuf, _(*msgp->format->fmt), tmp->tm_hour, tmp->tm_min, tmp->tm_sec, - msgp->format->msg, sum, - *msgp->format->type); + _(msgp->format->msg), sum, + _(*msgp->format->type)); break; } do_log(_("%s"), msgbuf);