diff options
author | Jim Meyering <jim@meyering.net> | 1995-08-08 04:37:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-08-08 04:37:34 +0000 |
commit | f0556f35178beb8c540370d8ea6fb2d7fcf187ab (patch) | |
tree | b6b9b9a07d56b90ef84b02bdf892b3580b16767b /src/hostname.c | |
parent | 6b853ebe011e7fb5557ed06e9d15af456a2d4710 (diff) | |
download | coreutils-f0556f35178beb8c540370d8ea6fb2d7fcf187ab.tar.xz |
Annotate localizable strings with _(...). From Franc,ois.
Diffstat (limited to 'src/hostname.c')
-rw-r--r-- | src/hostname.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/hostname.c b/src/hostname.c index ef89bb370..bcf709bf9 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -57,18 +57,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 ("\ + printf (_("\ Usage: %s [NAME]\n\ or: %s OPTION\n\ Print the hostname of the current system.\n\ \n\ --help display this help and exit\n\ --version output version information and exit\n\ -" +") , program_name, program_name); } exit (status); @@ -98,19 +98,20 @@ main (argc, argv) } #else if (argc == 2) - error (1, 0, "cannot set hostname; this system lacks the functionality"); + error (1, 0, + _("cannot set hostname; this system lacks the functionality")); #endif if (argc == 1) { hostname = xgethostname (); if (hostname == NULL) - error (1, errno, "cannot determine hostname"); + error (1, errno, _("cannot determine hostname")); printf ("%s\n", hostname); } else { - error (2, 0, "too many arguments"); + error (2, 0, _("too many arguments")); usage (1); } |