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

Commit 9922fc5

Browse files
committed
pg_dump: Add gettext plural support to error message
1 parent b258ceb commit 9922fc5

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
@@ -12325,7 +12325,9 @@ dumpTableSchema(Archive *fout, TableInfo *tbinfo)
1232512325
check_sql_result(res, g_conn, query->data, PGRES_TUPLES_OK);
1232612326
if (PQntuples(res) != 1)
1232712327
{
12328-
write_msg(NULL, "query returned %d foreign server entries for foreign table \"%s\"\n",
12328+
write_msg(NULL, ngettext("query returned %d foreign server entry for foreign table \"%s\"\n",
12329+
"query returned %d foreign server entries for foreign table \"%s\"\n",
12330+
PQntuples(res)),
1232912331
PQntuples(res), tbinfo->dobj.name);
1233012332
exit_nicely();
1233112333
}

0 commit comments

Comments
 (0)