Tom Lane wrote: > That advice is, if not outright wrong, at least incredibly > short-sighted. The method breaks the instant you have any additional > values to print. For example, this ain't gonna work: > > printf (ngettext ("One file removed, containing %lu bytes", > "%d files removed, containing %lu bytes", n), > n, total_bytes);
I think it should use the %2$s style specifier in that case. This should work: > printf (ngettext ("One file removed, containing %2$lu bytes", > "%d files removed, containing %lu bytes", n), > n, total_bytes); -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers