[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: POTFILES.in updates?
From: |
Eric Blake |
Subject: |
Re: POTFILES.in updates? |
Date: |
Thu, 19 Jul 2007 21:59:17 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666 |
-----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 address@hidden
-----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-----
- Re: POTFILES.in updates?, (continued)
Re: POTFILES.in updates?, Bruno Haible, 2007/07/18
Re: POTFILES.in updates?, Bruno Haible, 2007/07/19
Re: POTFILES.in updates?,
Eric Blake <=
Re: xstrtol.h (was: Re: POTFILES.in updates?), Bruno Haible, 2007/07/21
Re: xstrtol.h, Jim Meyering, 2007/07/21
Re: xstrtol.h, Bruno Haible, 2007/07/22
Re: xstrtol.h, Eric Blake, 2007/07/22
Re: xstrtol.h, Jim Meyering, 2007/07/22
Re: xstrtol.h, Ben Pfaff, 2007/07/22
Re: xstrtol.h, Jim Meyering, 2007/07/22
Re: xstrtol.h, Jim Meyering, 2007/07/22
Re: xstrtol.h, Jim Meyering, 2007/07/22
Re: xstrtol.h, Bruno Haible, 2007/07/25