# HG changeset patch # User Colin Watson # Date 1200350144 -3600 # Node ID 54235d17e2af57009264668ffa7a05cf3cc6bf8e # Parent b87fb6bea56a7b5d75fbdd3dbd6d4c8c6fdc4657 Make the functions argp_error, argp_failure known to xgettext. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-14 Colin Watson + + * modules/argp (Notice): Add a notice recommending to change + XGETTEXT_OPTIONS. + (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists. + 2008-01-13 Colin Watson * modules/strsignal-tests: New file. diff --git a/modules/argp b/modules/argp --- a/modules/argp +++ b/modules/argp @@ -1,6 +1,11 @@ Description: Hierarchical processing of command line arguments. +Notice: +If you are using GNU gettext version 0.16.1 or older, add the following options +to XGETTEXT_OPTIONS in your po/Makevars: + --flag=argp_error:2:c-format --flag=argp_failure:4:c-format + Files: lib/argp.h lib/argp-ba.c @@ -34,6 +39,9 @@ configure.ac: gl_ARGP +m4_ifdef([AM_XGETTEXT_OPTION], + [AM_XGETTEXT_OPTION([--flag=argp_error:2:c-format]) + AM_XGETTEXT_OPTION([--flag=argp_failure:4:c-format])]) Makefile.am: lib_SOURCES += argp.h argp-ba.c argp-eexst.c \