diff options
author | Peter Eisentraut | 2009-05-27 20:47:55 +0000 |
---|---|---|
committer | Peter Eisentraut | 2009-05-27 20:47:55 +0000 |
commit | 4eaa89100056e2cd0b0b931b913a8dcacccdac7e (patch) | |
tree | 559bc256fa417905c75f0cd357dee4ede02c3ebf | |
parent | 5f9a27323207c4bfd7f0c1675a54be8aa1a2bcbb (diff) |
Fix to use the same format specifiers in both branches of a ngettext().
Zdenek Kotala
-rw-r--r-- | src/bin/psql/describe.c | 2 | ||||
-rw-r--r-- | 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); } |