Add missing source files to nls.mk
Files in common/ and fe_utils/ that contain translatable strings need to be listed in the nls.mk files of the programs that use them. (Not great, but that's the way it works for now.) This usually requires some manual analysis which is done about once during each major release beta period. This time, I wrote a hackish script that figures some of this out more automatically, so this update is a bit larger as it also includes some files that were missed in the past.
This commit is contained in:
parent
6ac5600a36
commit
ad8877cb51
20 changed files with 62 additions and 13 deletions
|
@ -12,6 +12,7 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
|||
../../common/username.c \
|
||||
../../common/wait_error.c \
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/string_utils.c \
|
||||
../../port/dirmod.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) simple_prompt
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
|
@ -2,10 +2,15 @@
|
|||
CATALOG_NAME = pg_amcheck
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
||||
pg_amcheck.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/username.c \
|
||||
../../fe_utils/cancel.c \
|
||||
../../fe_utils/connect_utils.c \
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/query_utils.c
|
||||
../../fe_utils/parallel_slot.c \
|
||||
../../fe_utils/query_utils.c \
|
||||
../../fe_utils/string_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) \
|
||||
log_no_match
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# src/bin/pg_archivecleanup/nls.mk
|
||||
CATALOG_NAME = pg_archivecleanup
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_archivecleanup.c
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_archivecleanup.c ../../common/fe_memutils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
|
@ -15,9 +15,12 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
|||
streamutil.c \
|
||||
walmethods.c \
|
||||
../../common/compression.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/restricted_token.c \
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/recovery_gen.c
|
||||
../../fe_utils/recovery_gen.c \
|
||||
../../fe_utils/string_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) simple_prompt
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
CATALOG_NAME = pg_checksums
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
||||
pg_checksums.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../fe_utils/option_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
|
@ -7,9 +7,14 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
|||
pg_combinebackup.c \
|
||||
reconstruct.c \
|
||||
write_manifest.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/cryptohash.c \
|
||||
../../common/cryptohash_openssl.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/jsonapi.c \
|
||||
../../common/parse_manifest.c
|
||||
../../common/parse_manifest.c \
|
||||
../../fe_utils/option_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) \
|
||||
json_token_error:2 \
|
||||
json_manifest_parse_failure:2 \
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# src/bin/pg_config/nls.mk
|
||||
CATALOG_NAME = pg_config
|
||||
GETTEXT_FILES = pg_config.c ../../common/config_info.c ../../common/exec.c
|
||||
GETTEXT_FILES = pg_config.c \
|
||||
../../common/config_info.c \
|
||||
../../common/exec.c \
|
||||
../../common/fe_memutils.c
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# src/bin/pg_controldata/nls.mk
|
||||
CATALOG_NAME = pg_controldata
|
||||
GETTEXT_FILES = pg_controldata.c ../../common/controldata_utils.c
|
||||
GETTEXT_FILES = pg_controldata.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/fe_memutils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# src/bin/pg_ctl/nls.mk
|
||||
CATALOG_NAME = pg_ctl
|
||||
GETTEXT_FILES = pg_ctl.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/exec.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/wait_error.c \
|
||||
|
|
|
@ -26,8 +26,10 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
|||
../../common/compression.c \
|
||||
../../common/exec.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/wait_error.c \
|
||||
../../fe_utils/option_utils.c
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/string_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) \
|
||||
simple_prompt \
|
||||
ExecuteSqlCommand:3 \
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
CATALOG_NAME = pg_resetwal
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
||||
pg_resetwal.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/restricted_token.c \
|
||||
../../fe_utils/option_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
|
||||
|
|
|
@ -10,11 +10,15 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
|||
pg_rewind.c \
|
||||
timeline.c \
|
||||
xlogreader.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/percentrepl.c \
|
||||
../../common/restricted_token.c \
|
||||
../../fe_utils/archive.c \
|
||||
../../fe_utils/recovery_gen.c
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/recovery_gen.c \
|
||||
../../fe_utils/string_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) \
|
||||
report_invalid_record:2
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# src/bin/pg_test_fsync/nls.mk
|
||||
CATALOG_NAME = pg_test_fsync
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_test_fsync.c
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) pg_test_fsync.c ../../common/fe_memutils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) die
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# src/bin/pg_test_timing/nls.mk
|
||||
CATALOG_NAME = pg_test_timing
|
||||
GETTEXT_FILES = pg_test_timing.c
|
||||
GETTEXT_FILES = pg_test_timing.c ../../common/fe_memutils.c
|
||||
|
|
|
@ -14,7 +14,13 @@ GETTEXT_FILES = check.c \
|
|||
server.c \
|
||||
tablespace.c \
|
||||
util.c \
|
||||
version.c
|
||||
version.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/restricted_token.c \
|
||||
../../common/username.c \
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/string_utils.c
|
||||
GETTEXT_TRIGGERS = pg_fatal \
|
||||
pg_log:2 \
|
||||
prep_status \
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
CATALOG_NAME = pg_verifybackup
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
||||
pg_verifybackup.c \
|
||||
../../common/controldata_utils.c \
|
||||
../../common/cryptohash.c \
|
||||
../../common/cryptohash_openssl.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/jsonapi.c \
|
||||
../../common/parse_manifest.c
|
||||
|
|
|
@ -3,7 +3,9 @@ CATALOG_NAME = pg_waldump
|
|||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
||||
pg_waldump.c \
|
||||
xlogreader.c \
|
||||
xlogstats.c
|
||||
xlogstats.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) \
|
||||
report_invalid_record:2
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS) \
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# src/bin/pg_combinebackup/nls.mk
|
||||
CATALOG_NAME = pg_walsummary
|
||||
GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
||||
pg_walsummary.c
|
||||
pg_walsummary.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../fe_utils/option_utils.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS)
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
|
@ -19,6 +19,7 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
|||
../../fe_utils/cancel.c \
|
||||
../../fe_utils/print.c \
|
||||
../../fe_utils/psqlscan.c \
|
||||
../../fe_utils/string_utils.c \
|
||||
../../common/exec.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/username.c \
|
||||
|
|
|
@ -16,7 +16,9 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
|||
../../fe_utils/connect_utils.c \
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/query_utils.c \
|
||||
../../fe_utils/string_utils.c \
|
||||
../../common/fe_memutils.c \
|
||||
../../common/file_utils.c \
|
||||
../../common/username.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) simple_prompt yesno_prompt
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
|
Loading…
Reference in a new issue