From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NO9MV-0006Mt-JC for mharc-grub-devel@gnu.org; Fri, 25 Dec 2009 07:33:43 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NO9MU-0006Mg-Fn for grub-devel@gnu.org; Fri, 25 Dec 2009 07:33:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NO9MP-0006MD-N3 for grub-devel@gnu.org; Fri, 25 Dec 2009 07:33:41 -0500 Received: from [199.232.76.173] (port=45212 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NO9MP-0006MA-HK for grub-devel@gnu.org; Fri, 25 Dec 2009 07:33:37 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]:60074) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NO9MP-0002B8-9d for grub-devel@gnu.org; Fri, 25 Dec 2009 07:33:37 -0500 Received: by fg-out-1718.google.com with SMTP id e21so745306fga.12 for ; Fri, 25 Dec 2009 04:33:36 -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=yc/bVTubSmomP5iT3N2DhPbjc8cqlANrjNCyiaDYNN4=; b=AXwYjXKUO0T6sasCjp6rNEgV60gYVWwafvloITl35aC9uAQn3h/zY8mkkG+CfMFYoZ JFwt+jAte1jNttJb2Xs/qQ3i9n1QWG/FKg9toPiwF2JUE/KQN15uvyx5Rq/TadaH4XYE ihZlJRiG6cSNvq9UcA9XOFSgjKKA7xOYV9oI8= 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=Q8PC4tYtxKElZ6Zsa8VgAN3w15wElIysQ47K/Ou8JO25gDydT7YazspBF5k8aLyvZT LayiZLbIGncr2fKR9QNZJ7rPwBjutB/n8FC9F67pDnYqpLOc+Uoea3QRZ7Jffpc7Lyde goTa72U4vSMFer4vugimdc0ZGHLvEKDawmXmU= Received: by 10.86.6.2 with SMTP id 2mr8406814fgf.22.1261744416016; Fri, 25 Dec 2009 04:33:36 -0800 (PST) Received: from debian.bg45.phnet (44-159.203-62.cust.bluewin.ch [62.203.159.44]) by mx.google.com with ESMTPS id e20sm21569243fga.27.2009.12.25.04.33.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Dec 2009 04:33:35 -0800 (PST) Message-ID: <4B34B117.6080906@gmail.com> Date: Fri, 25 Dec 2009 13:33:27 +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: <20091225115031.GA14251@pina.cat> <4B34AD01.9010908@gmail.com> <20091225122918.GB17270@pina.cat> In-Reply-To: <20091225122918.GB17270@pina.cat> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigA62FDEC3598C5AEA2CE258FA" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: gettext: help commands 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: Fri, 25 Dec 2009 12:33:42 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA62FDEC3598C5AEA2CE258FA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Carles Pina i Estany wrote: > Hi, > > On Dec/25/2009, Vladimir '??-coder/phcoder' Serbinenko wrote: > > =20 >>> =3D=3D=3D modified file 'commands/help.c' >>> --- commands/help.c 2009-06-10 21:04:23 +0000 >>> +++ commands/help.c 2009-12-25 11:34:16 +0000 >>> grub_cmd_help (grub_extcmd_t ext __attribute__ ((unused)), int argc, >>> @@ -48,7 +49,7 @@ grub_cmd_help (grub_extcmd_t ext __attri >>> (desclen < GRUB_TERM_WIDTH / 2 - 1 >>> ? desclen : GRUB_TERM_WIDTH / 2 - 1)); >>> >>> - grub_printf ("%s%s", description, (cnt++) % 2 ? "\n" : " "); >>> + grub_printf ("%s%s", _(description), (cnt++) % 2 ? "\n" : " "); >>> =20 >> At this point description is already cut at half of terminal width. >> You have to first translate and then cut the message and not the other= >> way round >> =20 > > See attached one. > > =20 Now 'desclen' is out of sync with message > =20 > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigA62FDEC3598C5AEA2CE258FA 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 iF4EAREKAAYFAks0sR4ACgkQNak7dOguQgmekQEAvPtfPA8SM/RtGl2wAWcAqdQQ 1bCbHJBSH44uEcz0F5AA/jU3ofieAR4HZ3DZtThURikzuGhiOT28evmTWU2BYsIN =wr5/ -----END PGP SIGNATURE----- --------------enigA62FDEC3598C5AEA2CE258FA--