Commit c6ef1393 authored by Peter Eisentraut's avatar Peter Eisentraut

Make _ be automatically included in GETTEXT_TRIGGERS

Since it's globally defined in c.h, it should be treated as a gettext
trigger everywhere.
parent 1b11e239
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
CATALOG_NAME = postgres CATALOG_NAME = postgres
AVAIL_LANGUAGES = de es fr ja pt_BR tr zh_CN zh_TW AVAIL_LANGUAGES = de es fr ja pt_BR tr zh_CN zh_TW
GETTEXT_FILES = + gettext-files 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 \ errdetail_plural:1,2 errhint errcontext \
GUC_check_errmsg GUC_check_errdetail GUC_check_errhint \ GUC_check_errmsg GUC_check_errdetail GUC_check_errhint \
write_stderr yyerror parser_yyerror write_stderr yyerror parser_yyerror
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
CATALOG_NAME = initdb CATALOG_NAME = initdb
AVAIL_LANGUAGES = cs de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW 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_FILES = initdb.c ../../port/dirmod.c ../../port/exec.c
GETTEXT_TRIGGERS = _ simple_prompt GETTEXT_TRIGGERS = simple_prompt
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
CATALOG_NAME = pg_basebackup CATALOG_NAME = pg_basebackup
AVAIL_LANGUAGES = de es AVAIL_LANGUAGES = de es
GETTEXT_FILES = pg_basebackup.c GETTEXT_FILES = pg_basebackup.c
GETTEXT_TRIGGERS = _
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
CATALOG_NAME = pg_config CATALOG_NAME = pg_config
AVAIL_LANGUAGES = de es fr it ja ko nb pt_BR ro ru sv ta tr zh_CN zh_TW 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_FILES = pg_config.c ../../port/exec.c
GETTEXT_TRIGGERS = _
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
CATALOG_NAME = pg_controldata CATALOG_NAME = pg_controldata
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW 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_FILES = pg_controldata.c
GETTEXT_TRIGGERS = _
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
CATALOG_NAME = pg_ctl CATALOG_NAME = pg_ctl
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ru sv ta tr zh_CN zh_TW 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_FILES = pg_ctl.c ../../port/exec.c
GETTEXT_TRIGGERS = _
...@@ -6,4 +6,4 @@ GETTEXT_FILES = pg_dump.c common.c pg_backup_archiver.c pg_backup_custom.c \ ...@@ -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 \ pg_backup_tar.c pg_restore.c pg_dumpall.c \
../../port/exec.c ../../port/exec.c
GETTEXT_TRIGGERS = write_msg:2 die_horribly:3 exit_horribly:3 simple_prompt \ GETTEXT_TRIGGERS = write_msg:2 die_horribly:3 exit_horribly:3 simple_prompt \
ExecuteSqlCommand:3 ahlog:3 _ ExecuteSqlCommand:3 ahlog:3
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
CATALOG_NAME = pg_resetxlog CATALOG_NAME = pg_resetxlog
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro ru sv ta tr zh_CN zh_TW 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_FILES = pg_resetxlog.c
GETTEXT_TRIGGERS = _
...@@ -4,4 +4,4 @@ AVAIL_LANGUAGES = cs de es fr ja pt_BR sv tr zh_CN zh_TW ...@@ -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 \ 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 \ mainloop.c print.c startup.c describe.c sql_help.h sql_help.c \
../../port/exec.c ../../port/exec.c
GETTEXT_TRIGGERS = _ N_ psql_error simple_prompt GETTEXT_TRIGGERS = N_ psql_error simple_prompt
...@@ -5,4 +5,4 @@ GETTEXT_FILES = createdb.c createlang.c createuser.c \ ...@@ -5,4 +5,4 @@ GETTEXT_FILES = createdb.c createlang.c createuser.c \
dropdb.c droplang.c dropuser.c \ dropdb.c droplang.c dropuser.c \
clusterdb.c vacuumdb.c reindexdb.c \ clusterdb.c vacuumdb.c reindexdb.c \
common.c common.c
GETTEXT_TRIGGERS = _ simple_prompt yesno_prompt GETTEXT_TRIGGERS = simple_prompt yesno_prompt
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
CATALOG_NAME = ecpg CATALOG_NAME = ecpg
AVAIL_LANGUAGES = de es fr it ja ko pt_BR tr zh_CN zh_TW 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_FILES = descriptor.c ecpg.c pgc.c preproc.c type.c variable.c
GETTEXT_TRIGGERS = _ mmerror:3 GETTEXT_TRIGGERS = mmerror:3
...@@ -39,6 +39,9 @@ ifdef XGETTEXT ...@@ -39,6 +39,9 @@ ifdef XGETTEXT
XGETTEXT += -ctranslator --copyright-holder='PostgreSQL Global Development Group' --msgid-bugs-address=pgsql-bugs@postgresql.org XGETTEXT += -ctranslator --copyright-holder='PostgreSQL Global Development Group' --msgid-bugs-address=pgsql-bugs@postgresql.org
endif endif
# _ is defined in c.h, so it's global
GETTEXT_TRIGGERS += _
all-po: $(MO_FILES) all-po: $(MO_FILES)
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
CATALOG_NAME = plpgsql CATALOG_NAME = plpgsql
AVAIL_LANGUAGES = de es fr it ja ko pt_BR ro zh_CN zh_TW 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_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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment