From fab30d537b3c7826a89471293f1d2b9a5743cf1a Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 14 Jan 2008 23:35:44 +0100 Subject: [PATCH] Make the functions argp_error, argp_failure known to xgettext. --- ChangeLog | 6 ++++++ modules/argp | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5b90e00197..5ac469e60c 100644 --- 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 index da65d4f3c0..de801ae248 100644 --- 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 @@ strerror 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 \ -- 2.30.2