summaryrefslogtreecommitdiff
path: root/src/tty.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/tty.c
parent6b853ebe011e7fb5557ed06e9d15af456a2d4710 (diff)
downloadcoreutils-f0556f35178beb8c540370d8ea6fb2d7fcf187ab.tar.xz
Annotate localizable strings with _(...). From Franc,ois.
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tty.c b/src/tty.c
index 68332a7c2..6a9baf1a4 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -99,10 +99,10 @@ main (argc, argv)
if (tty)
puts (tty);
else
- puts ("not a tty");
+ puts (_("not a tty"));
if (ferror (stdout) || fclose (stdout) == EOF)
- error (3, errno, "standard output");
+ error (3, errno, _("standard output"));
}
exit (isatty (0) ? 0 : 1);
@@ -113,18 +113,18 @@ 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]...\n", program_name);
- printf ("\
+ printf (_("Usage: %s [OPTION]...\n"), program_name);
+ printf (_("\
Print the file name of the terminal connected to standard input.\n\
\n\
-s, --silent, --quiet print nothing, only return an exit status\n\
--help display this help and exit\n\
--version output version information and exit\n\
-");
+"));
}
exit (status);
}