From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NHnUd-0007jN-Sh for mharc-grub-devel@gnu.org; Mon, 07 Dec 2009 18:59:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHnUc-0007iI-BN for grub-devel@gnu.org; Mon, 07 Dec 2009 18:59:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHnUX-0007g8-FJ for grub-devel@gnu.org; Mon, 07 Dec 2009 18:59:49 -0500 Received: from [199.232.76.173] (port=56272 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHnUX-0007fv-AV for grub-devel@gnu.org; Mon, 07 Dec 2009 18:59:45 -0500 Received: from mail-ew0-f215.google.com ([209.85.219.215]:40341) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHnUW-0006Q5-L4 for grub-devel@gnu.org; Mon, 07 Dec 2009 18:59:45 -0500 Received: by ewy7 with SMTP id 7so6492522ewy.32 for ; Mon, 07 Dec 2009 15:59:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=JzwOJpAh3gEFtVTgRhoZilNY13XhiW4EfxR58/VWirM=; b=hh6fgKYwWJC8pOnFCTR8mZsqICJyalFesuV88sxbhNlp5ekh40Sj/i+e1qW5vYiCTD PShexyJKTCT2oINVcn+2Rb7aW7elqMbp8jhC5zrwjkGDyDr7Pz4dNAaRpqFiT8RuXHV5 Tnp+pXMTwwGzImR91TGXoL8gHTA9p9guYchMQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=SbXEUQsRIzYZCaWQmibYnddgrHzw4FiFCqL3eX89e5ykFrOAokf3zvNsuWl3OisRk7 YK7nL+6cMZDox0SEf2qGh6nbOUiGgRA4u8PB4JGEZHI+psQBErg4znFpjOhvdXTTl9dX NPZIl84tItnoaB7d/+Rx322QS7k19GiVJPrto= Received: by 10.213.63.136 with SMTP id b8mr8615654ebi.71.1260230383091; Mon, 07 Dec 2009 15:59:43 -0800 (PST) Received: from debian.bg45.phnet (gprs01.swisscom-mobile.ch [193.247.250.1]) by mx.google.com with ESMTPS id 16sm3687630ewy.10.2009.12.07.15.59.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 15:59:42 -0800 (PST) Message-ID: <4B1D96E0.1020004@gmail.com> Date: Tue, 08 Dec 2009 00:59:28 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <20091207140923.GA6439@riva.ucam.org> <4B1D7C04.1000503@gmail.com> <20091207231203.GK6439@riva.ucam.org> <20091207233836.GA10791@riva.ucam.org> In-Reply-To: <20091207233836.GA10791@riva.ucam.org> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig44656DFA28051885084018C1" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Build failures on Ubuntu due to gettext 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, 07 Dec 2009 23:59:50 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig44656DFA28051885084018C1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Colin Watson wrote: > Furthermore, the style I suggested is used in many other GNU projects. > Here are just a few examples: > > coreutils/src/du.c:994: error (0, 0, "%s", _("invalid zero-leng= th file name")); > diffutils/src/sdiff.c:853: fprintf (stderr, "%s", _("\ > diffutils/src/sdiff.c-854-ed:\tEdit then use both versions, each deco= rated with a header.\n\ > glibc/inet/rcmd.c:178: __fxprintf(NULL, = "%s", _("\ > glibc/inet/rcmd.c-179-rcmd: socket: All ports in use\n")); > gnulib/lib/xalloc-die.c:34: error (exit_failure, 0, "%s", _("memory = exhausted")); > > =20 I have nothing against defining grub_putl_ (str); equivalent to grub_printf ("%s\n", str); (defined as function if it's used extensively for space reasons). Just from your previous mails it seemed that you proposed to transform strings like grub_printf (_("Moving file %s to %s."), f1, f2); to grub_printf ("%s %s %s %s.", _("Moving file"), f1, _("to"), f2); to avoid translating format-strings which would be completely untranslatable. > Indeed, here's a commit from the gettext author using this style: > > http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=3Dd5d1ae3b3c3= ae2f837740e5f5d65326197ccdb98 > > (Look for close_stdout_status in lib/closeout.c.) > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig44656DFA28051885084018C1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAksdlusACgkQNak7dOguQglPewD/VrQCcg1bWdC3kJ0zxFCkmOYI eYykFwCQBUudqaKq4W8A/jegxFRM6HMvvEqD8/NQb1DvgGgQhzls3Ao6cZre4ABl =Gc3X -----END PGP SIGNATURE----- --------------enig44656DFA28051885084018C1--