Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 10ff8f9

Browse files
committed
pg_dump: Add gettext plural support to error message
1 parent ec3e183 commit 10ff8f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12082,7 +12082,9 @@ dumpTableSchema(Archive *fout, TableInfo *tbinfo)
1208212082
check_sql_result(res, g_conn, query->data, PGRES_TUPLES_OK);
1208312083
if (PQntuples(res) != 1)
1208412084
{
12085-
write_msg(NULL, "query returned %d foreign server entries for foreign table \"%s\"\n",
12085+
write_msg(NULL, ngettext("query returned %d foreign server entry for foreign table \"%s\"\n",
12086+
"query returned %d foreign server entries for foreign table \"%s\"\n",
12087+
PQntuples(res)),
1208612088
PQntuples(res), tbinfo->dobj.name);
1208712089
exit_nicely();
1208812090
}

0 commit comments

Comments
 (0)