Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NILBE-00064T-50 for mharc-grub-devel@gnu.org; Wed, 09 Dec 2009 06:58:04 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NILBC-000644-9y for grub-devel@gnu.org; Wed, 09 Dec 2009 06:58:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NILB7-00063T-6p for grub-devel@gnu.org; Wed, 09 Dec 2009 06:58:01 -0500 Received: from [199.232.76.173] (port=43050 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NILB7-00063Q-0Y for grub-devel@gnu.org; Wed, 09 Dec 2009 06:57:57 -0500 Received: from mailout06.t-online.de ([194.25.134.19]:53080) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NILB6-0007pt-HH for grub-devel@gnu.org; Wed, 09 Dec 2009 06:57:56 -0500 Received: from fwd10.aul.t-online.de by mailout06.t-online.de with smtp id 1NILB4-0004hJ-02; Wed, 09 Dec 2009 12:57:54 +0100 Received: from localhost (XV8vu2ZpQhYxs3eNWYXPqcZCTmJLnJ7DG3Z6bdnu2qHTUrwO3mKaatn2edq-BrXgyR@[172.20.101.250]) by fwd10.aul.t-online.de with esmtp id 1NILAx-1qUwam0; Wed, 9 Dec 2009 12:57:47 +0100 MIME-Version: 1.0 Received: from 194.45.13.131:41802 by cmpweb31.aul.t-online.de with HTTP/1.1 (Kommunikationscenter V9-3-0-7 on API V3-6-0-6) In-Reply-To: <20091208231909.GB3617@nubol.oskuro.net> References: <20091206182533.GB15091@pina.cat> <20091208231909.GB3617@nubol.oskuro.net> Date: Wed, 09 Dec 2009 12:57:47 +0100 To: "The development of GNU GRUB" X-UMS: email X-Mailer: TOI Kommunikationscenter V9-3-0-7 From: "Christian Franke" Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Message-ID: <1NILAx-1qUwam0@fwd10.aul.t-online.de> X-ID: XV8vu2ZpQhYxs3eNWYXPqcZCTmJLnJ7DG3Z6bdnu2qHTUrwO3mKaatn2edq-BrXgyR@t-dialin.net X-TOI-MSGID: a3fc87d5-9310-498c-b304-e1e96c589aed X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: gettext: commands/hdparm.c 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: Wed, 09 Dec 2009 11:58:02 -0000 Jordi Mallach wrote: > On Sun, Dec 06, 2009 at 06:25:33PM +0000, Carles Pina i Estany wrote: > > grub_printf ("Model:    \"%.40s\"\n", le16_to_char (tmp, &idw[27], > > 40)); grub_printf ("Firmware: \"%.8s\"\n",  le16_to_char (tmp, > > &idw[23], 8)); grub_printf ("Serial:   \"%.20s\"\n", le16_to_char > > (tmp, &idw[10], 20)); > > To have a proper alignment it needs to code something (dynamic > > "tab"). > > > > I could change it to: > > grub_printf (_("Model:\t\"%.40s\"\n"), le16_to_char (tmp, &idw[27], > > 40)); grub_printf (_("Firmware:\t\"%.8s\"\n"),  le16_to_char (tmp, > > &idw[23], 8)); grub_printf (_("Serial:\t\"%.20s\"\n"), le16_to_char > > (tmp, &idw[10], 20)); > > It's not unusual to see stuff like this, but again, a small percent of > translators will actually try to figure out if the string is correctly > aligned or how many \t's they need to use (by manually calculating how > the string will look, by reading the source code, or using qemu). > > If the alignment is just a cosmetic enhancement, dropping it could be > a reasonable option. > Yes, it is only cosmetic - feel free to drop it. -- Regards, Christian Franke