diff options
author | Jim Meyering <jim@meyering.net> | 1999-01-23 16:26:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-01-23 16:26:16 +0000 |
commit | b02f28bab496964b4d5077cfabb31d548f7089d9 (patch) | |
tree | 6bb8ebb90ee795aca049f9369cb87d3293b27209 /src | |
parent | 68e327564d1ae65bdba845d5337cbd8fec5ce369 (diff) | |
download | coreutils-b02f28bab496964b4d5077cfabb31d548f7089d9.tar.xz |
Bracket pfstatus messages with _().
Diffstat (limited to 'src')
-rw-r--r-- | src/shred.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shred.c b/src/shred.c index 5685e2b6d..d91620ef5 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; |