OSDN Git Service

Make _ be automatically included in GETTEXT_TRIGGERS
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 26 Jun 2011 20:05:30 +0000 (23:05 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 26 Jun 2011 20:05:30 +0000 (23:05 +0300)
Since it's globally defined in c.h, it should be treated as a gettext
trigger everywhere.

13 files changed:
src/backend/nls.mk
src/bin/initdb/nls.mk
src/bin/pg_basebackup/nls.mk
src/bin/pg_config/nls.mk
src/bin/pg_controldata/nls.mk
src/bin/pg_ctl/nls.mk
src/bin/pg_dump/nls.mk
src/bin/pg_resetxlog/nls.mk
src/bin/psql/nls.mk
src/bin/scripts/nls.mk
src/interfaces/ecpg/preproc/nls.mk
src/nls-global.mk
src/pl/plpgsql/src/nls.mk

index 5237310..8d83c41 100644 (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
index 31f1cd9..3fdf526 100644 (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
index 4004efa..0c594f9 100644 (file)
@@ -2,4 +2,3 @@
 CATALOG_NAME     = pg_basebackup
 AVAIL_LANGUAGES  = de es
 GETTEXT_FILES    = pg_basebackup.c
-GETTEXT_TRIGGERS = _
index 173d2aa..5e5c9a1 100644 (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 = _
index f4c09a0..f2f8b3d 100644 (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 = _
index a90b0a0..198615c 100644 (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 = _
index 34b49e0..48a4990 100644 (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
index 1a19c2c..8a645fc 100644 (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 = _
index 3bc0f45..38d9b15 100644 (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
index 38daba7..ebea045 100644 (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
index f41cfc6..2c66d78 100644 (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
index 32b3c0f..da62e94 100644 (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)
 
index 4caa580..c21dbe0 100644 (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