From: Peter Eisentraut Date: Tue, 29 Nov 2011 17:49:02 +0000 (+0200) Subject: pg_dump: Add gettext plural support to error message X-Git-Tag: REL9_1_2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10ff8f98a0df59d0ad5d162cd88a0c687c3a5920;p=postgresql pg_dump: Add gettext plural support to error message --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index fd2c760687..57f2ed31ad 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -12082,7 +12082,9 @@ dumpTableSchema(Archive *fout, TableInfo *tbinfo) check_sql_result(res, g_conn, query->data, PGRES_TUPLES_OK); if (PQntuples(res) != 1) { - write_msg(NULL, "query returned %d foreign server entries for foreign table \"%s\"\n", + write_msg(NULL, ngettext("query returned %d foreign server entry for foreign table \"%s\"\n", + "query returned %d foreign server entries for foreign table \"%s\"\n", + PQntuples(res)), PQntuples(res), tbinfo->dobj.name); exit_nicely(); }