-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Bruno Haible on 7/19/2007 2:21 PM: > Sergey Poznyakoff wrote: >> In that case the `_' macro for gnulib has to be changed to >> >> #define _(s) dgettext("gnulib",s) > > The lib/gettext.h file already arranges for this (with the i18n domain name > being not just "gnulib", but "findutils-gnulib" or similar).
That won't work in headers. For .c files, they are compiled as part of the gnulib library, where the DEFAULT_TEXT_DOMAIN is in effect. But for the .h files, such as xstrtol.h, they are compiled as part of the main program, where gettext() is no longer a macro to the <pobase>-domain. It looks like we'll have to edit any use of gettext in gnulib headers to instead use something from a .c file, since not everyone will be using the gnulib-tool --pobase option right away. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGoDMV84KuGfSFAYARAoyOAJ9fXb6o2M8abni5yqEJX9ZqAYuw0wCgxc+U WmkIPYl5jSS7HCEagWmtXGQ= =/0j8 -----END PGP SIGNATURE-----