From: Jim Meyering Date: Sat, 23 Jan 1999 16:26:16 +0000 (+0000) Subject: Bracket pfstatus messages with _(). X-Git-Tag: TEXTUTILS-1_22h~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b02f28bab496964b4d5077cfabb31d548f7089d9;p=thirdparty%2Fcoreutils.git Bracket pfstatus messages with _(). --- diff --git a/src/shred.c b/src/shred.c index 5685e2b6d4..d91620ef5c 100644 --- a/src/shred.c +++ b/src/shred.c @@ -2,6 +2,7 @@ x use getopt_long x use error, not pferror - bracket strings with _(...) for gettext + - use consistent non-capitalizatin in error messages */ /* @@ -719,7 +720,7 @@ dopass (int fd, char const *name, off_t size, int type, thresh = 0; if (n) { - pfstatus ("%s: pass %lu/%lu (%s)...", name, k, n, pass_string); + pfstatus (_("%s: pass %lu/%lu (%s)...)"), name, k, n, pass_string); if (size > VERBOSE_UPDATE) thresh = size - VERBOSE_UPDATE; } @@ -745,8 +746,7 @@ dopass (int fd, char const *name, off_t size, int type, may fail with a different errno. */ /* This error confuses people. */ if (e == EBADF && fd == 0) - fputs ( - "(Did you remember to open stdin read/write with \"<>file\"?)\n", + fputs (_("(Did you remember to open stdin read/write with \"<>file\"?)\n"), stderr); return -1; } @@ -758,7 +758,7 @@ dopass (int fd, char const *name, off_t size, int type, /* Time to print progress? */ if (cursize <= thresh && n) { - pfstatus ("%s: pass %lu/%lu (%s)...%lu/%lu K", + pfstatus (_("%s: pass %lu/%lu (%s)...%lu/%lu K"), name, k, n, pass_string, (size - cursize + 1023) / 1024, (size + 1023) / 1024); if (thresh > VERBOSE_UPDATE) @@ -1146,7 +1146,7 @@ wipename (char *oldname, struct Options const *flags) int err; int dirfd; /* Try to open directory to sync *it* */ - pfstatus ("%s: deleting", oldname); + pfstatus (_("%s: deleting"), oldname); newname = strdup (oldname); /* This is a malloc */ if (!newname) @@ -1194,7 +1194,7 @@ wipename (char *oldname, struct Options const *flags) sync (); /* Force directory out */ if (origname) { - pfstatus ("%s: renamed to `%s'", + pfstatus (_("%s: renamed to `%s'"), origname, newname); if (flags->verbose > 1) flushstatus (); @@ -1214,7 +1214,7 @@ wipename (char *oldname, struct Options const *flags) if (origname) { if (!err) - pfstatus ("%s: deleted", origname); + pfstatus (_("%s: deleted"), origname); free (origname); } return err;