summaryrefslogtreecommitdiffstats
path: root/text-utils/more.c
diff options
context:
space:
mode:
authorLauri Nurmi2014-07-26 11:43:42 +0200
committerKarel Zak2014-07-28 11:46:59 +0200
commit140d91471dde15d583f45ca704a32b4c192618a5 (patch)
tree7b910e9a599fa95b4555b693e88cf3770e6388f9 /text-utils/more.c
parentsfdisk: use pluralized translation. (diff)
downloadkernel-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.c14
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();