Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NFFQP-0005h8-ON for mharc-grub-devel@gnu.org; Mon, 30 Nov 2009 18:12:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFFQN-0005fD-OU for grub-devel@gnu.org; Mon, 30 Nov 2009 18:12:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFFQJ-0005ZY-1O for grub-devel@gnu.org; Mon, 30 Nov 2009 18:12:55 -0500 Received: from [199.232.76.173] (port=41112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFFQI-0005ZV-Uz for grub-devel@gnu.org; Mon, 30 Nov 2009 18:12:50 -0500 Received: from flatline.sindominio.net ([82.144.4.26]:44076) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFFQI-00075V-5Z for grub-devel@gnu.org; Mon, 30 Nov 2009 18:12:50 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id 60CB3348023 for ; Tue, 1 Dec 2009 00:12:44 +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 KcwMAWefELQE for ; Tue, 1 Dec 2009 00:12:40 +0100 (CET) Received: from nubol.oskuro.net (91.109.221.87.dynamic.jazztel.es [87.221.109.91]) by flatline.sindominio.net (Postfix) with ESMTPA id A5032348022 for ; Tue, 1 Dec 2009 00:12:40 +0100 (CET) Received: by nubol.oskuro.net (Postfix, from userid 1000) id 85F9F3AE8B7; Tue, 1 Dec 2009 00:12:37 +0100 (CET) Date: Tue, 1 Dec 2009 00:12:37 +0100 From: Jordi Mallach To: grub-devel@gnu.org Message-ID: <20091130231237.GB4778@nubol.oskuro.net> References: <20091128111409.GA17183@pina.cat> <20091128190709.GC25683@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20091128190709.GC25683@thorin> Organization: SinDominio X-Operating-System: Debian GNU/Linux sid (Linux 2.6.31-1-686 i686) User-Agent: Mutt/1.5.20 (2009-06-14) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: new function: grub_printfnl 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, 30 Nov 2009 23:12:56 -0000 On Sat, Nov 28, 2009 at 08:07:09PM +0100, Robert Millan wrote: > > Gettextizzing files I have a very common situation: > > grub_printf ("Bla bla bla\n"); > Uhm I wonder what's the common approach to this. Maybe Jordi or someon= e > else can tell? I think this is going too far. I don't think there's a need to remove all trailing nl's if the string is not going to be repeated in other slightly different ways, because adapting this means making the code a bit less readable for what I'm seeing. In some cases, it looks like a good idea where it's worth the extra effort; the gettext manual recommends plain strings and so on, but if it'= s just a trailing new line, I think in most cases it's not worth it. Translators know how to deal with them. Jordi --=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/