Peter Eisentraut píše v út 26. 05. 2009 v 13:39 +0300: > Of course the concrete example that you show doesn't actually take advantage > of this, so if it is important to you, please send a patch to fix it.
Fix attached. I found only two problems, both in psql. I did not fix .po files. Is necessary to fix them manually or do you regenerate files? thanks Zdenek
diff -r 7a4dd8cda3b6 src/bin/psql/describe.c --- a/src/bin/psql/describe.c Wed May 27 12:28:55 2009 +0000 +++ b/src/bin/psql/describe.c Wed May 27 21:58:15 2009 +0200 @@ -2036,7 +2036,7 @@ 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 -r 7a4dd8cda3b6 src/bin/psql/print.c --- a/src/bin/psql/print.c Wed May 27 12:28:55 2009 +0000 +++ b/src/bin/psql/print.c Wed May 27 21:58:15 2009 +0200 @@ -2348,7 +2348,7 @@ 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); }
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers