]> granicus.if.org Git - postgresql/commitdiff
pg_dump: Add gettext plural support to error message
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 29 Nov 2011 17:49:02 +0000 (19:49 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 29 Nov 2011 17:49:02 +0000 (19:49 +0200)
src/bin/pg_dump/pg_dump.c

index 916939cf936484ae1a3911b1b0cf96370044a19a..cbe529e15680581abbe8caf2498b4acfaf61217d 100644 (file)
@@ -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();
                        }