Make _ be automatically included in GETTEXT_TRIGGERS

Since it's globally defined in c.h, it should be treated as a gettext
trigger everywhere.
This commit is contained in:
Peter Eisentraut 2011-06-26 23:05:30 +03:00
parent 1b11e239ca
commit c6ef139376
13 changed files with 10 additions and 12 deletions

View File

@ -2,7 +2,7 @@
CATALOG_NAME = postgres
AVAIL_LANGUAGES = de es fr ja pt_BR tr zh_CN zh_TW
GETTEXT_FILES = + gettext-files
GETTEXT_TRIGGERS = _ errmsg errmsg_plural:1,2 errdetail errdetail_log \
GETTEXT_TRIGGERS = errmsg errmsg_plural:1,2 errdetail errdetail_log \
errdetail_plural:1,2 errhint errcontext \
GUC_check_errmsg GUC_check_errdetail GUC_check_errhint \
write_stderr yyerror parser_yyerror

View File

@ -2,4 +2,4 @@
CATALOG_NAME = initdb
AVAIL_LANGUAGES = cs de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW
GETTEXT_FILES = initdb.c ../../port/dirmod.c ../../port/exec.c
GETTEXT_TRIGGERS = _ simple_prompt
GETTEXT_TRIGGERS = simple_prompt

View File

@ -2,4 +2,3 @@
CATALOG_NAME = pg_basebackup
AVAIL_LANGUAGES = de es
GETTEXT_FILES = pg_basebackup.c
GETTEXT_TRIGGERS = _

View File

@ -2,4 +2,3 @@
CATALOG_NAME = pg_config
AVAIL_LANGUAGES = de es fr it ja ko nb pt_BR ro ru sv ta tr zh_CN zh_TW
GETTEXT_FILES = pg_config.c ../../port/exec.c
GETTEXT_TRIGGERS = _

View File

@ -2,4 +2,3 @@
CATALOG_NAME = pg_controldata
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW
GETTEXT_FILES = pg_controldata.c
GETTEXT_TRIGGERS = _

View File

@ -2,4 +2,3 @@
CATALOG_NAME = pg_ctl
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ru sv ta tr zh_CN zh_TW
GETTEXT_FILES = pg_ctl.c ../../port/exec.c
GETTEXT_TRIGGERS = _

View File

@ -6,4 +6,4 @@ GETTEXT_FILES = pg_dump.c common.c pg_backup_archiver.c pg_backup_custom.c \
pg_backup_tar.c pg_restore.c pg_dumpall.c \
../../port/exec.c
GETTEXT_TRIGGERS = write_msg:2 die_horribly:3 exit_horribly:3 simple_prompt \
ExecuteSqlCommand:3 ahlog:3 _
ExecuteSqlCommand:3 ahlog:3

View File

@ -2,4 +2,3 @@
CATALOG_NAME = pg_resetxlog
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW
GETTEXT_FILES = pg_resetxlog.c
GETTEXT_TRIGGERS = _

View File

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

View File

@ -5,4 +5,4 @@ GETTEXT_FILES = createdb.c createlang.c createuser.c \
dropdb.c droplang.c dropuser.c \
clusterdb.c vacuumdb.c reindexdb.c \
common.c
GETTEXT_TRIGGERS = _ simple_prompt yesno_prompt
GETTEXT_TRIGGERS = simple_prompt yesno_prompt

View File

@ -2,4 +2,4 @@
CATALOG_NAME = ecpg
AVAIL_LANGUAGES = de es fr it ja ko pt_BR tr zh_CN zh_TW
GETTEXT_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c
GETTEXT_TRIGGERS = _ mmerror:3
GETTEXT_TRIGGERS = mmerror:3

View File

@ -39,6 +39,9 @@ ifdef XGETTEXT
XGETTEXT += -ctranslator --copyright-holder='PostgreSQL Global Development Group' --msgid-bugs-address=pgsql-bugs@postgresql.org
endif
# _ is defined in c.h, so it's global
GETTEXT_TRIGGERS += _
all-po: $(MO_FILES)

View File

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