mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Add the possibility to pass --flag arguments to xgettext calls
The --flag argument can be used to tell xgettext the arguments of which functions should be flagged with c-format in the PO files, instead of guessing based on the presence of format specifiers, which fails if no format specifiers are present but the translation accidentally introduces one. Appropriate flag settings have been added for each message catalog. based on a patch by Christoph Berg for bug #6066
This commit is contained in:
@@ -3,3 +3,4 @@ CATALOG_NAME = ecpglib
|
||||
AVAIL_LANGUAGES = de es fr it ja pt_BR tr zh_CN
|
||||
GETTEXT_FILES = connect.c error.c execute.c misc.c
|
||||
GETTEXT_TRIGGERS = ecpg_gettext
|
||||
GETTEXT_FLAGS = ecpg_gettext:1:pass-c-format
|
||||
|
||||
@@ -3,3 +3,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_FLAGS = mmerror:3:c-format
|
||||
|
||||
@@ -3,3 +3,4 @@ CATALOG_NAME = libpq
|
||||
AVAIL_LANGUAGES = cs de es fr it ja ko pt_BR ru sv ta tr zh_CN zh_TW
|
||||
GETTEXT_FILES = fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c
|
||||
GETTEXT_TRIGGERS = libpq_gettext pqInternalNotice:2
|
||||
GETTEXT_FLAGS = libpq_gettext:1:pass-c-format pqInternalNotice:2:c-format
|
||||
|
||||
Reference in New Issue
Block a user