pg_amcheck: Add missing translation markers
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 7 Aug 2021 11:36:59 +0000 (13:36 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 7 Aug 2021 11:36:59 +0000 (13:36 +0200)
src/bin/pg_amcheck/nls.mk
src/bin/pg_amcheck/pg_amcheck.c

index cae6dc86ad950cda3b442dbd6e5dc8550c57dc3a..f5658efc0e7f6c9a5a91e6d56fd3a9e05801ca9e 100644 (file)
@@ -6,5 +6,7 @@ GETTEXT_FILES    = $(FRONTEND_COMMON_GETTEXT_FILES) \
                    ../../fe_utils/cancel.c \
                    ../../fe_utils/connect_utils.c \
                    ../../fe_utils/query_utils.c
-GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
-GETTEXT_FLAGS    = $(FRONTEND_COMMON_GETTEXT_FLAGS)
+GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) \
+                   log_no_match
+GETTEXT_FLAGS    = $(FRONTEND_COMMON_GETTEXT_FLAGS) \
+                   log_no_match:1:c-format
index ee8aa71bdf3123b28b23fa523d5f74edb803f596..9357976934fb93324fab572244e1cfc60371c2f9 100644 (file)
@@ -1026,7 +1026,7 @@ verify_heap_slot_handler(PGresult *res, PGconn *conn, void *context)
                                msg = PQgetvalue(res, i, 3);
 
                        if (!PQgetisnull(res, i, 2))
-                               printf("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s, attribute %s:\n    %s\n",
+                               printf(_("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s, attribute %s:\n    %s\n"),
                                           rel->datinfo->datname, rel->nspname, rel->relname,
                                           PQgetvalue(res, i, 0),       /* blkno */
                                           PQgetvalue(res, i, 1),       /* offnum */
@@ -1034,20 +1034,20 @@ verify_heap_slot_handler(PGresult *res, PGconn *conn, void *context)
                                           msg);
 
                        else if (!PQgetisnull(res, i, 1))
-                               printf("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s:\n    %s\n",
+                               printf(_("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s:\n    %s\n"),
                                           rel->datinfo->datname, rel->nspname, rel->relname,
                                           PQgetvalue(res, i, 0),       /* blkno */
                                           PQgetvalue(res, i, 1),       /* offnum */
                                           msg);
 
                        else if (!PQgetisnull(res, i, 0))
-                               printf("heap table \"%s\".\"%s\".\"%s\", block %s:\n    %s\n",
+                               printf(_("heap table \"%s\".\"%s\".\"%s\", block %s:\n    %s\n"),
                                           rel->datinfo->datname, rel->nspname, rel->relname,
                                           PQgetvalue(res, i, 0),       /* blkno */
                                           msg);
 
                        else
-                               printf("heap table \"%s\".\"%s\".\"%s\":\n    %s\n",
+                               printf(_("heap table \"%s\".\"%s\".\"%s\":\n    %s\n"),
                                           rel->datinfo->datname, rel->nspname, rel->relname, msg);
                }
        }
@@ -1056,10 +1056,10 @@ verify_heap_slot_handler(PGresult *res, PGconn *conn, void *context)
                char       *msg = indent_lines(PQerrorMessage(conn));
 
                all_checks_pass = false;
-               printf("heap table \"%s\".\"%s\".\"%s\":\n%s",
+               printf(_("heap table \"%s\".\"%s\".\"%s\":\n%s"),
                           rel->datinfo->datname, rel->nspname, rel->relname, msg);
                if (opts.verbose)
-                       printf("query was: %s\n", rel->sql);
+                       printf(_("query was: %s\n"), rel->sql);
                FREE_AND_SET_NULL(msg);
        }
 
@@ -1122,10 +1122,10 @@ verify_btree_slot_handler(PGresult *res, PGconn *conn, void *context)
                char       *msg = indent_lines(PQerrorMessage(conn));
 
                all_checks_pass = false;
-               printf("btree index \"%s\".\"%s\".\"%s\":\n%s",
+               printf(_("btree index \"%s\".\"%s\".\"%s\":\n%s"),
                           rel->datinfo->datname, rel->nspname, rel->relname, msg);
                if (opts.verbose)
-                       printf("query was: %s\n", rel->sql);
+                       printf(_("query was: %s\n"), rel->sql);
                FREE_AND_SET_NULL(msg);
        }