From: Karel Zak Date: Mon, 28 Apr 2008 11:58:24 +0000 (+0200) Subject: scriptreplay: gettextize a forgotten messages X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e6e4bf6ae5683cfc28f57e7d8c17f718eb00bc0;p=util-linux scriptreplay: gettextize a forgotten messages Signed-off-by: Karel Zak --- diff --git a/misc-utils/scriptreplay.c b/misc-utils/scriptreplay.c index 2ae31a2a..6c351a35 100644 --- a/misc-utils/scriptreplay.c +++ b/misc-utils/scriptreplay.c @@ -35,7 +35,7 @@ void __attribute__((__noreturn__)) usage(int rc) { - printf("%s [ []]\n", + printf(_("%s [ []]\n"), program_invocation_short_name); exit(rc); } @@ -101,7 +101,7 @@ emit(FILE *fd, const char *filename, size_t ct) ct -= len; cc = write(STDOUT_FILENO, buf, len); if (cc != len) - err(EXIT_FAILURE, "write to stdout failed"); + err(EXIT_FAILURE, _("write to stdout failed")); } if (!ct) @@ -160,7 +160,7 @@ main(int argc, char *argv[]) break; if (ferror(tfile)) err(EXIT_FAILURE, - "failed to read timing file %s", tname); + _("failed to read timing file %s"), tname); errx(EXIT_FAILURE, _("timings file %s: %lu: expected format"), tname, line); diff --git a/po/POTFILES.in b/po/POTFILES.in index 0f53346f..559d9243 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -60,6 +60,7 @@ misc-utils/namei.c misc-utils/procs.c misc-utils/rename.c misc-utils/script.c +misc-utils/scriptreplay.c misc-utils/setterm.c misc-utils/whereis.c misc-utils/write.c