summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-08-07 14:57:29 +0000
committerJim Meyering <jim@meyering.net>1995-08-07 14:57:29 +0000
commit92c50e7f527080fa7a1a7745d235f436ff7411fd (patch)
treee558f31db7be5292af01682042e2b2c121ac9b7f /src/split.c
parent22ebf9c6ac7640bf58cfa9662eae765a61bf9f0f (diff)
downloadcoreutils-92c50e7f527080fa7a1a7745d235f436ff7411fd.tar.xz
Annotate localizable strings with _(...). From Franc,ois.
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/split.c b/src/split.c
index f2a028d2e..4464aa2e6 100644
--- a/src/split.c
+++ b/src/split.c
@@ -90,15 +90,15 @@ usage (status, reason)
fprintf (stderr, "%s: %s\n", program_name, reason);
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 [OPTION] [INPUT [PREFIX]]\n\
-",
+"),
program_name);
- printf ("\
+ printf (_("\
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default\n\
PREFIX is `x'. With no INPUT, or when INPUT is -, read standard input.\n\
\n\
@@ -110,7 +110,7 @@ PREFIX is `x'. With no INPUT, or when INPUT is -, read standard input.\n\
--version output version information and exit\n\
\n\
SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.\n\
-");
+"));
}
exit (status);
}
@@ -156,27 +156,27 @@ main (argc, argv)
case 'b':
if (split_type != type_undef)
- usage (2, "cannot split in more than one way");
+ usage (2, _("cannot split in more than one way"));
split_type = type_bytes;
if (convint (optarg, &accum) == -1)
- usage (2, "invalid number of bytes");
+ usage (2, _("invalid number of bytes"));
break;
case 'l':
if (split_type != type_undef)
- usage (2, "cannot split in more than one way");
+ usage (2, _("cannot split in more than one way"));
split_type = type_lines;
if (!isdigits (optarg))
- usage (2, "invalid number of lines");
+ usage (2, _("invalid number of lines"));
accum = atoi (optarg);
break;
case 'C':
if (split_type != type_undef)
- usage (2, "cannot split in more than one way");
+ usage (2, _("cannot split in more than one way"));
split_type = type_byteslines;
if (convint (optarg, &accum) == -1)
- usage (2, "invalid number of bytes");
+ usage (2, _("invalid number of bytes"));
break;
case '0':
@@ -190,7 +190,7 @@ main (argc, argv)
case '8':
case '9':
if (split_type != type_undef && split_type != type_digits)
- usage (2, "cannot split in more than one way");
+ usage (2, _("cannot split in more than one way"));
if (digits_optind != 0 && digits_optind != this_optind)
accum = 0; /* More than one number given; ignore other. */
digits_optind = this_optind;
@@ -220,7 +220,7 @@ main (argc, argv)
}
if (accum < 1)
- usage (2, "invalid number");
+ usage (2, _("invalid number"));
num = accum;
/* Get out the filename arguments. */
@@ -232,7 +232,7 @@ main (argc, argv)
outbase = argv[optind++];
if (optind < argc)
- usage (2, "too many arguments");
+ usage (2, _("too many arguments"));
/* Open the input file. */
if (!strcmp (infile, "-"))