pg_amcheck: Add missing translation markers

This commit is contained in:
Peter Eisentraut 2021-08-07 13:36:59 +02:00
parent d954019f0a
commit 9b0d71725e
2 changed files with 12 additions and 10 deletions

View 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

View File

@ -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);
}