From 140d91471dde15d583f45ca704a32b4c192618a5 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Sat, 26 Jul 2014 12:43:42 +0300 Subject: more: replace ad-hoc support for plurals with gettext plurals. --- text-utils/more.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'text-utils/more.c') diff --git a/text-utils/more.c b/text-utils/more.c index d05e9467c..a489953b5 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -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(); -- cgit v1.2.3-55-g7522