summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-30 03:26:34 +0000
committerJim Meyering <jim@meyering.net>1996-04-30 03:26:34 +0000
commit6580f2478320e4dd2bd585e41233e72ee73929a3 (patch)
tree11bc9925342752ac6890a93cd7dafdda1173eaf9
parenta3c143bd822da67ec246da237fa4b4d103007152 (diff)
downloadcoreutils-6580f2478320e4dd2bd585e41233e72ee73929a3.tar.xz
Mark translatable strings.
(main): Separate messages about `too few' and `too many' arguments to ease translation. From Franc,ois.
-rw-r--r--src/basename.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/basename.c b/src/basename.c
index a4b58c60a..fa018fee1 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -43,22 +43,22 @@ static void
usage (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 [SUFFIX]\n\
or: %s OPTION\n\
-",
+"),
program_name, program_name);
- printf ("\
+ printf (_("\
Print NAME with any leading directory components removed.\n\
If specified, also remove a trailing SUFFIX.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
-");
+"));
}
exit (status);
}
@@ -96,7 +96,8 @@ main (int argc, char **argv)
if (argc == 1 || argc > 3)
{
- error (0, 0, "too %s arguments", argc == 1 ? "few" : "many");
+ error (0, 0, (argc == 1 ? _("too few arguments")
+ : _("too many arguments")));
usage (1);
}