diff options
author | Lauri Nurmi | 2014-07-26 11:43:42 +0200 |
---|---|---|
committer | Karel Zak | 2014-07-28 11:46:59 +0200 |
commit | 140d91471dde15d583f45ca704a32b4c192618a5 (patch) | |
tree | 7b910e9a599fa95b4555b693e88cf3770e6388f9 /text-utils/more.c | |
parent | sfdisk: use pluralized translation. (diff) | |
download | kernel-qcow2-util-linux-140d91471dde15d583f45ca704a32b4c192618a5.tar.gz kernel-qcow2-util-linux-140d91471dde15d583f45ca704a32b4c192618a5.tar.xz kernel-qcow2-util-linux-140d91471dde15d583f45ca704a32b4c192618a5.zip |
more: replace ad-hoc support for plurals with gettext plurals.
Diffstat (limited to 'text-utils/more.c')
-rw-r--r-- | text-utils/more.c | 14 |
1 files changed, 6 insertions, 8 deletions
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(); |