summaryrefslogtreecommitdiff
path: root/src/who.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/who.c
parent6b853ebe011e7fb5557ed06e9d15af456a2d4710 (diff)
downloadcoreutils-f0556f35178beb8c540370d8ea6fb2d7fcf187ab.tar.xz
Annotate localizable strings with _(...). From Franc,ois.
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/who.c b/src/who.c
index d10d014ea..d31134296 100644
--- a/src/who.c
+++ b/src/who.c
@@ -183,7 +183,7 @@ idle_string (when)
(int) ((seconds_idle % (60 * 60)) / 60));
return (const char *) idle;
}
- return " old ";
+ return _(" old ");
}
/* Display a line of information about entry THIS. */
@@ -282,7 +282,7 @@ list_entries_who (n)
}
this++;
}
- printf ("\n# users=%u\n", entries);
+ printf (_("\n# users=%u\n"), entries);
}
#endif /* WHO */
@@ -352,12 +352,12 @@ print_heading ()
{
printf ("%-8s ", "USER");
if (include_mesg)
- printf ("MESG ");
- printf ("%-8s ", "LINE");
- printf ("LOGIN-TIME ");
+ printf (_("MESG "));
+ printf ("%-8s ", _("LINE"));
+ printf (_("LOGIN-TIME "));
if (include_idle)
- printf ("IDLE ");
- printf ("FROM\n");
+ printf (_("IDLE "));
+ printf (_("FROM\n"));
}
/* Display `utmp_contents', which should have N entries. */
@@ -506,12 +506,12 @@ 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 | ARG1 ARG2 ]\n", program_name);
- printf ("\
+ printf (_("Usage: %s [OPTION]... [ FILE | ARG1 ARG2 ]\n"), program_name);
+ printf (_("\
\n\
-H, --heading print line of column headings\n\
-T, -w, --mesg add user's message status as +, - or ?\n\
@@ -526,7 +526,7 @@ usage (status)
\n\
If FILE not given, uses /etc/utmp. /etc/wtmp as FILE is common.\n\
If ARG1 ARG2 given, -m presumed: `am i' or `mom likes' are usual.\n\
-");
+"));
}
exit (status);
}
@@ -538,17 +538,17 @@ 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 (_("\
Output who is currently logged in according to FILE.\n\
If FILE not given, uses /etc/utmp. /etc/wtmp as FILE is common.\n\
\n\
--help display this help and exit\n\
- --version output version information and exit\n");
+ --version output version information and exit\n"));
}
exit (status);
}
@@ -606,7 +606,7 @@ main (argc, argv)
#endif /* WHO */
default:
- error (0, 0, "too many arguments");
+ error (0, 0, _("too many arguments"));
usage (1);
}
}