]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mcookie: pluralize two messages
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Oct 2013 20:15:15 +0000 (22:15 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2013 13:27:29 +0000 (15:27 +0200)
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
misc-utils/mcookie.c

index da641a176dfc1cc6e9398b68cb65217f3050dd70..3761c4b8cae7ab253d25a9ccc760f083b3bdcf44 100644 (file)
@@ -147,8 +147,9 @@ int main(int argc, char **argv)
                        count = hash_file(&ctx, fd);
                        if (verbose)
                                fprintf(stderr,
-                                       _("Got %d bytes from %s\n"), count,
-                                       file);
+                                       P_("Got %d byte from %s\n",
+                                          "Got %d bytes from %s\n", count),
+                                       count, file);
 
                        if (fd != STDIN_FILENO)
                                if (close(fd))
@@ -171,8 +172,9 @@ int main(int argc, char **argv)
                        close(fd);
                        if (verbose)
                                fprintf(stderr,
-                                       _("Got %d bytes from %s\n"), r,
-                                       rngs[i].path);
+                                       P_("Got %d byte from %s\n",
+                                          "Got %d bytes from %s\n", r),
+                                       r, rngs[i].path);
                        if (rngs[i].minlength && r >= rngs[i].minlength)
                                break;
                } else if (verbose)