Skip to content

Commit 789d806

Browse files
committed
pg_amcheck: Add missing translation markers
1 parent f4f4a64 commit 789d806

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
@@ -1026,28 +1026,28 @@ verify_heap_slot_handler(PGresult *res, PGconn *conn, void *context)
10261026
msg = PQgetvalue(res, i, 3);
10271027

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

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

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

10491049
else
1050-
printf("heap table \"%s\".\"%s\".\"%s\":\n %s\n",
1050+
printf(_("heap table \"%s\".\"%s\".\"%s\":\n %s\n"),
10511051
rel->datinfo->datname, rel->nspname, rel->relname, msg);
10521052
}
10531053
}
@@ -1056,10 +1056,10 @@ verify_heap_slot_handler(PGresult *res, PGconn *conn, void *context)
10561056
char *msg = indent_lines(PQerrorMessage(conn));
10571057

10581058
all_checks_pass = false;
1059-
printf("heap table \"%s\".\"%s\".\"%s\":\n%s",
1059+
printf(_("heap table \"%s\".\"%s\".\"%s\":\n%s"),
10601060
rel->datinfo->datname, rel->nspname, rel->relname, msg);
10611061
if (opts.verbose)
1062-
printf("query was: %s\n", rel->sql);
1062+
printf(_("query was: %s\n"), rel->sql);
10631063
FREE_AND_SET_NULL(msg);
10641064
}
10651065

@@ -1122,10 +1122,10 @@ verify_btree_slot_handler(PGresult *res, PGconn *conn, void *context)
11221122
char *msg = indent_lines(PQerrorMessage(conn));
11231123

11241124
all_checks_pass = false;
1125-
printf("btree index \"%s\".\"%s\".\"%s\":\n%s",
1125+
printf(_("btree index \"%s\".\"%s\".\"%s\":\n%s"),
11261126
rel->datinfo->datname, rel->nspname, rel->relname, msg);
11271127
if (opts.verbose)
1128-
printf("query was: %s\n", rel->sql);
1128+
printf(_("query was: %s\n"), rel->sql);
11291129
FREE_AND_SET_NULL(msg);
11301130
}
11311131

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