mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Gettext plural support
In the backend, I changed only a handful of exemplary or important-looking instances to make use of the plural support; there is probably more work there. For the rest of the source, this should cover all relevant cases.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user