Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c6ef139

Browse files
committed
Make _ be automatically included in GETTEXT_TRIGGERS
Since it's globally defined in c.h, it should be treated as a gettext trigger everywhere.
1 parent 1b11e23 commit c6ef139

File tree

13 files changed

+10
-12
lines changed

13 files changed

+10
-12
lines changed

src/backend/nls.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
CATALOG_NAME = postgres
33
AVAIL_LANGUAGES = de es fr ja pt_BR tr zh_CN zh_TW
44
GETTEXT_FILES = + gettext-files
5-
GETTEXT_TRIGGERS = _ errmsg errmsg_plural:1,2 errdetail errdetail_log \
5+
GETTEXT_TRIGGERS = errmsg errmsg_plural:1,2 errdetail errdetail_log \
66
errdetail_plural:1,2 errhint errcontext \
77
GUC_check_errmsg GUC_check_errdetail GUC_check_errhint \
88
write_stderr yyerror parser_yyerror

src/bin/initdb/nls.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
CATALOG_NAME = initdb
33
AVAIL_LANGUAGES = cs de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW
44
GETTEXT_FILES = initdb.c ../../port/dirmod.c ../../port/exec.c
5-
GETTEXT_TRIGGERS = _ simple_prompt
5+
GETTEXT_TRIGGERS = simple_prompt

src/bin/pg_basebackup/nls.mk

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
CATALOG_NAME = pg_basebackup
33
AVAIL_LANGUAGES = de es
44
GETTEXT_FILES = pg_basebackup.c
5-
GETTEXT_TRIGGERS = _

src/bin/pg_config/nls.mk

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
CATALOG_NAME = pg_config
33
AVAIL_LANGUAGES = de es fr it ja ko nb pt_BR ro ru sv ta tr zh_CN zh_TW
44
GETTEXT_FILES = pg_config.c ../../port/exec.c
5-
GETTEXT_TRIGGERS = _

src/bin/pg_controldata/nls.mk

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
CATALOG_NAME = pg_controldata
33
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW
44
GETTEXT_FILES = pg_controldata.c
5-
GETTEXT_TRIGGERS = _

src/bin/pg_ctl/nls.mk

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
CATALOG_NAME = pg_ctl
33
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ru sv ta tr zh_CN zh_TW
44
GETTEXT_FILES = pg_ctl.c ../../port/exec.c
5-
GETTEXT_TRIGGERS = _

src/bin/pg_dump/nls.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ GETTEXT_FILES = pg_dump.c common.c pg_backup_archiver.c pg_backup_custom.c \
66
pg_backup_tar.c pg_restore.c pg_dumpall.c \
77
../../port/exec.c
88
GETTEXT_TRIGGERS = write_msg:2 die_horribly:3 exit_horribly:3 simple_prompt \
9-
ExecuteSqlCommand:3 ahlog:3 _
9+
ExecuteSqlCommand:3 ahlog:3

src/bin/pg_resetxlog/nls.mk

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
CATALOG_NAME = pg_resetxlog
33
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW
44
GETTEXT_FILES = pg_resetxlog.c
5-
GETTEXT_TRIGGERS = _

src/bin/psql/nls.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ AVAIL_LANGUAGES = cs de es fr ja pt_BR sv tr zh_CN zh_TW
44
GETTEXT_FILES = command.c common.c copy.c help.c input.c large_obj.c \
55
mainloop.c print.c startup.c describe.c sql_help.h sql_help.c \
66
../../port/exec.c
7-
GETTEXT_TRIGGERS = _ N_ psql_error simple_prompt
7+
GETTEXT_TRIGGERS = N_ psql_error simple_prompt

src/bin/scripts/nls.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ GETTEXT_FILES = createdb.c createlang.c createuser.c \
55
dropdb.c droplang.c dropuser.c \
66
clusterdb.c vacuumdb.c reindexdb.c \
77
common.c
8-
GETTEXT_TRIGGERS = _ simple_prompt yesno_prompt
8+
GETTEXT_TRIGGERS = simple_prompt yesno_prompt

src/interfaces/ecpg/preproc/nls.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
CATALOG_NAME = ecpg
33
AVAIL_LANGUAGES = de es fr it ja ko pt_BR tr zh_CN zh_TW
44
GETTEXT_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c
5-
GETTEXT_TRIGGERS = _ mmerror:3
5+
GETTEXT_TRIGGERS = mmerror:3

src/nls-global.mk

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ ifdef XGETTEXT
3939
XGETTEXT += -ctranslator --copyright-holder='PostgreSQL Global Development Group' --msgid-bugs-address=pgsql-bugs@postgresql.org
4040
endif
4141

42+
# _ is defined in c.h, so it's global
43+
GETTEXT_TRIGGERS += _
44+
4245

4346
all-po: $(MO_FILES)
4447

src/pl/plpgsql/src/nls.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
CATALOG_NAME = plpgsql
33
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro zh_CN zh_TW
44
GETTEXT_FILES = pl_comp.c pl_exec.c pl_gram.c pl_funcs.c pl_handler.c pl_scanner.c
5-
GETTEXT_TRIGGERS = _ errmsg errmsg_plural:1,2 errdetail errdetail_log errdetail_plural:1,2 errhint errcontext yyerror plpgsql_yyerror
5+
GETTEXT_TRIGGERS = errmsg errmsg_plural:1,2 errdetail errdetail_log errdetail_plural:1,2 errhint errcontext yyerror plpgsql_yyerror

0 commit comments

Comments
 (0)