2024-12-09 Bruno Haible <bruno@clisp.org>
+ xstrtol-error: Use the translation domain "gnulib".
+ * lib/xstrtol-error.c (_): New macro.
+ (xstrtol_error): Use dgettext() instead of gettext().
+ * modules/xstrtol-error (Depends-on): Add gnulib-i18n.
+
xprintf: Use the translation domain "gnulib".
* lib/xprintf.c (_): New macro.
(xvprintf, xvfprintf): Use it instead of gettext().
#include "exitfail.h"
#include "gettext.h"
+#define _(msgid) dgettext ("gnulib", msgid)
#define N_(msgid) msgid
/* Report an error for an invalid integer in an option argument.
else
option = long_options[opt_idx].name;
- error (exit_status, 0, gettext (msgid), hyphens, option, arg);
+ error (exit_status, 0, dgettext ("gnulib", msgid), hyphens, option, arg);
}
/* Like xstrtol_error, except exit with a failure status. */