diff options
Diffstat (limited to 'src/bin/psql/print.c')
-rw-r--r-- | src/bin/psql/print.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 52de0d9463f..1ebf488b35f 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.110 2009/01/01 17:23:55 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.111 2009/03/26 22:26:07 petere Exp $ */ #include "postgres_fe.h" @@ -2348,10 +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; - if (total_records == 1) - snprintf(default_footer, 100, _("(1 row)")); - else - snprintf(default_footer, 100, _("(%lu rows)"), total_records); + snprintf(default_footer, 100, ngettext("(1 row)", "(%lu rows)", total_records), total_records); printTableAddFooter(&cont, default_footer); } |