Make the functions argp_error, argp_failure known to xgettext.
authorColin Watson <cjwatson@debian.org>
Mon, 14 Jan 2008 22:35:44 +0000 (23:35 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Jan 2008 22:35:44 +0000 (23:35 +0100)
ChangeLog
modules/argp

index 5b90e00197d697f842e005be2bbe6a4e5e914666..5ac469e60ca67426971d6a54ea0436f66aacbb89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-14  Colin Watson  <cjwatson@debian.org>
+
+       * 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  <cjwatson@debian.org>
 
        * modules/strsignal-tests: New file.
index da65d4f3c033c3d07a4fec241148f48e1f5a3dce..de801ae2489f53c424679a75fec78f24690e31c1 100644 (file)
@@ -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 \