summaryrefslogtreecommitdiff
path: root/src/tee.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-08-08 04:37:34 +0000
committerJim Meyering <jim@meyering.net>1995-08-08 04:37:34 +0000
commitf0556f35178beb8c540370d8ea6fb2d7fcf187ab (patch)
treeb6b9b9a07d56b90ef84b02bdf892b3580b16767b /src/tee.c
parent6b853ebe011e7fb5557ed06e9d15af456a2d4710 (diff)
downloadcoreutils-f0556f35178beb8c540370d8ea6fb2d7fcf187ab.tar.xz
Annotate localizable strings with _(...). From Franc,ois.
Diffstat (limited to 'src/tee.c')
-rw-r--r--src/tee.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tee.c b/src/tee.c
index 5554d154a..b81d37579 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -61,19 +61,19 @@ usage (status)
int status;
{
if (status != 0)
- fprintf (stderr, "Try `%s --help' for more information.\n",
+ fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
{
- printf ("Usage: %s [OPTION]... [FILE]...\n", program_name);
- printf ("\
+ printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
+ printf (_("\
Copy standard input to each FILE, and also to standard output.\n\
\n\
-a, --append append to the given FILEs, do not overwrite\n\
-i, --ignore-interrupts ignore interrupt signals\n\
--help display this help and exit\n\
--version output version information and exit\n\
-");
+"));
}
exit (status);
}
@@ -136,9 +136,9 @@ main (argc, argv)
errs = tee (argc - optind, (const char **) &argv[optind]);
if (close (0) != 0)
- error (1, errno, "standard input");
+ error (1, errno, _("standard input"));
if (close (1) != 0)
- error (1, errno, "standard output");
+ error (1, errno, _("standard output"));
exit (errs);
}
@@ -171,7 +171,7 @@ tee (nfiles, files)
/* In the array of NFILES + 1 descriptors, make
the first one correspond to standard output. */
descriptors[0] = 1;
- files[0] = "standard output";
+ files[0] = _("standard output");
for (i = 1; i <= nfiles; i++)
{
@@ -212,7 +212,7 @@ tee (nfiles, files)
if (bytes_read == -1)
{
- error (0, errno, "read error");
+ error (0, errno, _("read error"));
ret = 1;
}