]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
more: replace ad-hoc support for plurals with gettext plurals.
authorLauri Nurmi <lanurmi@iki.fi>
Sat, 26 Jul 2014 09:43:42 +0000 (12:43 +0300)
committerKarel Zak <kzak@redhat.com>
Mon, 28 Jul 2014 09:46:59 +0000 (11:46 +0200)
text-utils/more.c

index d05e9467cb36a4a6b769f0cf44656d3bf5700324..a489953b555493ef770216d161e98ea11e2d9271 100644 (file)
@@ -1232,10 +1232,9 @@ int command(char *filename, register FILE *f)
                                putchar('\n');
                                if (clreol)
                                        cleareol();
-                               if (nlines != 1)
-                                       printf(_("...back %d pages"), nlines);
-                               else
-                                       putsout(_("...back 1 page"));
+                               printf(P_("...back %d page",
+                                       "...back %d pages", nlines),
+                                       nlines);
                                if (clreol)
                                        cleareol();
                                putchar('\n');
@@ -1281,10 +1280,9 @@ int command(char *filename, register FILE *f)
                        putchar('\n');
                        if (clreol)
                                cleareol();
-                       if (nlines == 1)
-                               putsout(_("...skipping one line"));
-                       else
-                               printf(_("...skipping %d lines"), nlines);
+                       printf(P_("...skipping %d line",
+                               "...skipping %d lines", nlines),
+                               nlines);
 
                        if (clreol)
                                cleareol();