changeset 9620:54235d17e2af

Make the functions argp_error, argp_failure known to xgettext.
author Colin Watson <cjwatson@debian.org>
date Mon, 14 Jan 2008 23:35:44 +0100
parents b87fb6bea56a
children d4bef14f119a
files ChangeLog modules/argp
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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 \