From 4eaa89100056e2cd0b0b931b913a8dcacccdac7e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 27 May 2009 20:47:55 +0000 Subject: [PATCH] Fix to use the same format specifiers in both branches of a ngettext(). Zdenek Kotala --- src/bin/psql/describe.c | 2 +- src/bin/psql/print.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 709e10ef47..7e542b0709 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -2036,7 +2036,7 @@ describeRoles(const char *pattern, bool verbose) if (conns == 0) appendPQExpBuffer(&buf, _("No connections")); else - appendPQExpBuffer(&buf, ngettext("1 connection", "%d connections", conns), conns); + appendPQExpBuffer(&buf, ngettext("%d connection", "%d connections", conns), conns); } attr[i] = pg_strdup(buf.data); diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 1fdd68f2b9..e2315a8262 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -2348,7 +2348,7 @@ printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout, FILE *f char default_footer[100]; total_records = opt->topt.prior_records + cont.nrows; - snprintf(default_footer, 100, ngettext("(1 row)", "(%lu rows)", total_records), total_records); + snprintf(default_footer, 100, ngettext("(%lu row)", "(%lu rows)", total_records), total_records); printTableAddFooter(&cont, default_footer); } -- 2.39.5