]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: fix message translation glitches
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Jul 2014 14:55:41 +0000 (07:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Jul 2014 14:56:22 +0000 (07:56 -0700)
Problem reported by Sebastian Rasmussen in: http://bugs.gnu.org/18054
* gl/lib/randread.c (randread_error): Don't put multiple string
literals inside _(...), as xgettext doesn't support that.
* src/chroot.c (main): In diagnostics, don't bother to distinguish
between setting the number of supplemental group IDs to a zero or
to a nonzero value, as the underlying system call is the same
either way.  This also makes the string easier to translate correctly.

gl/lib/randread.c
src/chroot.c

index a073cab2304db57ad2e1a8667e6ad9d69bd4629e..af85653f76c3f44c1f8302c45db595037af9e84f 100644 (file)
@@ -125,7 +125,7 @@ randread_error (void const *file_name)
 {
   if (file_name)
     error (exit_failure, errno,
-           _(errno == 0 ? "%s: end of file" : "%s: read error"),
+           errno == 0 ? _("%s: end of file") : _("%s: read error"),
            quotearg_colon (file_name));
   abort ();
 }
index fff0b533d4768b119676810a7e814fabd4b3ea6d..6c2d63f5522984c1af5f94037b0be2d47684b224 100644 (file)
@@ -392,8 +392,7 @@ main (int argc, char **argv)
 #endif
 
   if ((uid_set (uid) || groups) && setgroups (n_gids, gids) != 0)
-    error (EXIT_CANCELED, errno, _("failed to %s supplemental groups"),
-           gids ? "set" : "clear");
+    error (EXIT_CANCELED, errno, _("failed to set supplemental groups"));
 
   free (in_gids);
   free (out_gids);