mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-05-24 19:26:39 +02:00
nohup, remove, tr: also gettextize the alternative messages
This commit is contained in:
committed by
Jim Meyering
parent
2298544c64
commit
4718a2fdf4
+4
-4
@@ -162,8 +162,8 @@ main (int argc, char **argv)
|
||||
umask (umask_value);
|
||||
error (0, 0,
|
||||
_(ignoring_input
|
||||
? "ignoring input and appending output to %s"
|
||||
: "appending output to %s"),
|
||||
? N_("ignoring input and appending output to %s")
|
||||
: N_("appending output to %s")),
|
||||
quote (file));
|
||||
free (in_home);
|
||||
}
|
||||
@@ -185,8 +185,8 @@ main (int argc, char **argv)
|
||||
if (!redirecting_stdout)
|
||||
error (0, 0,
|
||||
_(ignoring_input
|
||||
? "ignoring input and redirecting stderr to stdout"
|
||||
: "redirecting stderr to stdout"));
|
||||
? N_("ignoring input and redirecting stderr to stdout")
|
||||
: N_("redirecting stderr to stdout")));
|
||||
|
||||
if (dup2 (out_fd, STDERR_FILENO) < 0)
|
||||
error (NOHUP_FAILURE, errno, _("failed to redirect standard error"));
|
||||
|
||||
+2
-2
@@ -1541,8 +1541,8 @@ rm_1 (Dirstack_state *ds, char const *filename,
|
||||
if (dot_or_dotdot (base))
|
||||
{
|
||||
error (0, 0, _(base == filename
|
||||
? "cannot remove directory %s"
|
||||
: "cannot remove %s directory %s"),
|
||||
? N_("cannot remove directory %s")
|
||||
: N_("cannot remove %s directory %s")),
|
||||
quote_n (0, base), quote_n (1, filename));
|
||||
return RM_ERROR;
|
||||
}
|
||||
|
||||
@@ -1720,9 +1720,9 @@ main (int argc, char **argv)
|
||||
error (0, 0, _("missing operand after %s"), quote (argv[argc - 1]));
|
||||
fprintf (stderr, "%s\n",
|
||||
_(squeeze_repeats
|
||||
? ("Two strings must be given when "
|
||||
"both deleting and squeezing repeats.")
|
||||
: "Two strings must be given when translating."));
|
||||
? N_("Two strings must be given when "
|
||||
"both deleting and squeezing repeats.")
|
||||
: N_("Two strings must be given when translating.")));
|
||||
}
|
||||
usage (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user