Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NAA8E-0008F6-RG for mharc-grub-devel@gnu.org; Mon, 16 Nov 2009 17:33:10 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAA8C-0008Eo-C1 for grub-devel@gnu.org; Mon, 16 Nov 2009 17:33:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAA87-0008Ck-P6 for grub-devel@gnu.org; Mon, 16 Nov 2009 17:33:07 -0500 Received: from [199.232.76.173] (port=33135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAA87-0008CZ-F1 for grub-devel@gnu.org; Mon, 16 Nov 2009 17:33:03 -0500 Received: from flatline.sindominio.net ([82.144.4.26]:39939) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NAA86-00032q-Ez for grub-devel@gnu.org; Mon, 16 Nov 2009 17:33:03 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id B7A1A262662 for ; Mon, 16 Nov 2009 23:33:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sindominio.net Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vsqzij3UepQm for ; Mon, 16 Nov 2009 23:32:57 +0100 (CET) Received: from nubol.oskuro.net (58.132.219.87.dynamic.jazztel.es [87.219.132.58]) by flatline.sindominio.net (Postfix) with ESMTPA id DAFD42625D0 for ; Mon, 16 Nov 2009 23:32:54 +0100 (CET) Received: by nubol.oskuro.net (Postfix, from userid 1000) id 3C5C13AE668; Mon, 16 Nov 2009 23:32:53 +0100 (CET) Date: Mon, 16 Nov 2009 23:32:52 +0100 From: Jordi Mallach To: The development of GNU GRUB Message-ID: <20091116223252.GA21513@nubol.oskuro.net> References: <20091115231355.GA11962@thorin> <20091115235909.GA12905@thorin> <20091116190956.GB19781@nubol.oskuro.net> <20091116195606.GA31886@thorin> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20091116195606.GA31886@thorin> Organization: SinDominio X-Operating-System: Debian GNU/Linux sid (Linux 2.6.30-2-686 i686) User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: gettext in build system X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 22:33:08 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 16, 2009 at 08:56:06PM +0100, Robert Millan wrote: > > > > +#define _(str) gettext(str) > > > And I'm not sure if this is the right place to define _. Isn't there > > > a system-wide definition? > > This, and others, sometimes go in a common .h to avoid duplication. Many > > grub utilities are going to add this kind of stuff. > I wonder where would we put this. Is there any convention? I'm not aware of any convention, not even for GNU packages. nls.h, i18n.h, grub-i18n.h. You name it. :) > > I haven't tested this patch yet, but I'm not sure if a bindtextdomain() > > call is needed here too. > This requires LOCALEDIR. Should we add po.m4 in order to get this, or > just define it ourselves? *shrug*, I think just assuming the usual $(datadir)/locale is ok. po.m4 does provide checks for the gettext tools iirc, though, so that might be useful in its own right. > > The rest looks good, given there's no automake. > We have aclocal now (in my branch). Is gettext.m4 usable to us? I think so, if platforms which don't use GNU gettext, or have an incompatib= le gettext implementation are supported. It provides checks for gettext(), ngettext(), setlocale() and friends, so yep, probably. --=20 Jordi Mallach P=E9rez -- Debian developer http://www.debian.org/ jordi@sindominio.net jordi@debian.org http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/ --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAksB0xQACgkQJYSUupF6Il7CSACgkfLpaqmDx1WNd7c4/vlKIhKJ zpYAoPDeM0mA3CjEHbxmbEaULXyUm5pF =9yM6 -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--