nohup, remove, tr: also gettextize the alternative messages
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 20 Aug 2008 21:00:00 +0000 (23:00 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 19 Sep 2008 10:27:36 +0000 (12:27 +0200)
src/nohup.c
src/remove.c
src/tr.c

index 3ff22ea..3364e91 100644 (file)
@@ -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"));
index 4c3ee99..58b24a3 100644 (file)
@@ -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;
     }
index e1bb404..4dde099 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -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);
     }