aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/pg_amcheck/nls.mk6
-rw-r--r--src/bin/pg_amcheck/pg_amcheck.c16
2 files changed, 12 insertions, 10 deletions
diff --git a/src/bin/pg_amcheck/nls.mk b/src/bin/pg_amcheck/nls.mk
index cae6dc86ad9..f5658efc0e7 100644
--- a/src/bin/pg_amcheck/nls.mk
+++ b/src/bin/pg_amcheck/nls.mk
@@ -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
diff --git a/src/bin/pg_amcheck/pg_amcheck.c b/src/bin/pg_amcheck/pg_amcheck.c
index 4bde16fb4bd..561bac17a84 100644
--- a/src/bin/pg_amcheck/pg_amcheck.c
+++ b/src/bin/pg_amcheck/pg_amcheck.c
@@ -1028,7 +1028,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 */
@@ -1036,20 +1036,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);
}
}
@@ -1058,10 +1058,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);
}
@@ -1124,10 +1124,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);
}