From 9922fc5f9f02e9d1653d08b0e62cefa8560425be Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Tue, 29 Nov 2011 19:49:02 +0200
Subject: [PATCH] pg_dump: Add gettext plural support to error message

---
 src/bin/pg_dump/pg_dump.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 916939cf936..cbe529e1568 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -12325,7 +12325,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();
 			}
-- 
GitLab