Skip to content

Commit 9b0d717

Browse files
committed
pg_amcheck: Add missing translation markers
1 parent d954019 commit 9b0d717

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/bin/pg_amcheck/nls.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
66
../../fe_utils/cancel.c \
77
../../fe_utils/connect_utils.c \
88
../../fe_utils/query_utils.c
9-
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
10-
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
9+
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) \
10+
log_no_match
11+
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) \
12+
log_no_match:1:c-format

src/bin/pg_amcheck/pg_amcheck.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,28 +1028,28 @@ verify_heap_slot_handler(PGresult *res, PGconn *conn, void *context)
10281028
msg = PQgetvalue(res, i, 3);
10291029

10301030
if (!PQgetisnull(res, i, 2))
1031-
printf("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s, attribute %s:\n %s\n",
1031+
printf(_("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s, attribute %s:\n %s\n"),
10321032
rel->datinfo->datname, rel->nspname, rel->relname,
10331033
PQgetvalue(res, i, 0), /* blkno */
10341034
PQgetvalue(res, i, 1), /* offnum */
10351035
PQgetvalue(res, i, 2), /* attnum */
10361036
msg);
10371037

10381038
else if (!PQgetisnull(res, i, 1))
1039-
printf("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s:\n %s\n",
1039+
printf(_("heap table \"%s\".\"%s\".\"%s\", block %s, offset %s:\n %s\n"),
10401040
rel->datinfo->datname, rel->nspname, rel->relname,
10411041
PQgetvalue(res, i, 0), /* blkno */
10421042
PQgetvalue(res, i, 1), /* offnum */
10431043
msg);
10441044

10451045
else if (!PQgetisnull(res, i, 0))
1046-
printf("heap table \"%s\".\"%s\".\"%s\", block %s:\n %s\n",
1046+
printf(_("heap table \"%s\".\"%s\".\"%s\", block %s:\n %s\n"),
10471047
rel->datinfo->datname, rel->nspname, rel->relname,
10481048
PQgetvalue(res, i, 0), /* blkno */
10491049
msg);
10501050

10511051
else
1052-
printf("heap table \"%s\".\"%s\".\"%s\":\n %s\n",
1052+
printf(_("heap table \"%s\".\"%s\".\"%s\":\n %s\n"),
10531053
rel->datinfo->datname, rel->nspname, rel->relname, msg);
10541054
}
10551055
}
@@ -1058,10 +1058,10 @@ verify_heap_slot_handler(PGresult *res, PGconn *conn, void *context)
10581058
char *msg = indent_lines(PQerrorMessage(conn));
10591059

10601060
all_checks_pass = false;
1061-
printf("heap table \"%s\".\"%s\".\"%s\":\n%s",
1061+
printf(_("heap table \"%s\".\"%s\".\"%s\":\n%s"),
10621062
rel->datinfo->datname, rel->nspname, rel->relname, msg);
10631063
if (opts.verbose)
1064-
printf("query was: %s\n", rel->sql);
1064+
printf(_("query was: %s\n"), rel->sql);
10651065
FREE_AND_SET_NULL(msg);
10661066
}
10671067

@@ -1124,10 +1124,10 @@ verify_btree_slot_handler(PGresult *res, PGconn *conn, void *context)
11241124
char *msg = indent_lines(PQerrorMessage(conn));
11251125

11261126
all_checks_pass = false;
1127-
printf("btree index \"%s\".\"%s\".\"%s\":\n%s",
1127+
printf(_("btree index \"%s\".\"%s\".\"%s\":\n%s"),
11281128
rel->datinfo->datname, rel->nspname, rel->relname, msg);
11291129
if (opts.verbose)
1130-
printf("query was: %s\n", rel->sql);
1130+
printf(_("query was: %s\n"), rel->sql);
11311131
FREE_AND_SET_NULL(msg);
11321132
}
11331133

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy