From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NO95g-0006QI-NK for mharc-grub-devel@gnu.org; Fri, 25 Dec 2009 07:16:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NO95e-0006Q5-Q8 for grub-devel@gnu.org; Fri, 25 Dec 2009 07:16:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NO95a-0006PN-3u for grub-devel@gnu.org; Fri, 25 Dec 2009 07:16:18 -0500 Received: from [199.232.76.173] (port=57590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NO95Z-0006PK-Vy for grub-devel@gnu.org; Fri, 25 Dec 2009 07:16:14 -0500 Received: from fg-out-1718.google.com ([72.14.220.152]:17948) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NO95Z-00083y-Os for grub-devel@gnu.org; Fri, 25 Dec 2009 07:16:13 -0500 Received: by fg-out-1718.google.com with SMTP id e21so743167fga.12 for ; Fri, 25 Dec 2009 04:16:12 -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=MQfzGywB7GBUGzTfFnUgoKLRsCleyNDApj6DMHpNSkU=; b=WS1XTkw5fOVUbsrlFwr20ODoxzopIggqMk5S1SynzmGMUyI24f6D24lnaPApFf2qvV 6Enh9TKCAbvQkj4PuMGkSkwLAgmQUvkuQV7u6pZjoP2k23HhCS2lx0k91tKB3j0Y556A OO4inftRr3eBG343Lk56GrjfYn1yNvgSOC+IE= 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=bLYubpznl6POw4k1C/c6mYMzxNhzteoYg3NymJHHUvnfz6P6IbcZEXWou0KCmLvWG7 KeNTfu0h7Rw78Om+6+It5RfAl2lVL5reyH9Mj2Jyg4oUMYFs3QRlj422XUm1mYzUXD85 E4J+jrU7OCBtC1HdpI6WF69EwWEw/00EhA/Hg= Received: by 10.87.64.6 with SMTP id r6mr15979768fgk.48.1261743370898; Fri, 25 Dec 2009 04:16:10 -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 e11sm21574319fga.19.2009.12.25.04.16.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Dec 2009 04:16:09 -0800 (PST) Message-ID: <4B34AD01.9010908@gmail.com> Date: Fri, 25 Dec 2009 13:16:01 +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> In-Reply-To: <20091225115031.GA14251@pina.cat> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig76B2B66F02012D96E9D28046" 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:16:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig76B2B66F02012D96E9D28046 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Carles Pina i Estany wrote: > Hello, > > Find attached a patch that gettextizze the output of: > help play > help search > search --help > > So, implements gettext in commands/help.c, lib/arg.c, I also did in > normal/dyncmd.c (for the module not found). > > This is only the basic implementation, when this is agreed I will > prepare another patch to gettextizze the help of all commands. > > I would commit it in this way when someone reviews it. It's quite > straightforward. > > =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)); >=20 >- grub_printf ("%s%s", description, (cnt++) % 2 ? "\n" : " "); >+ grub_printf ("%s%s", _(description), (cnt++) % 2 ? "\n" : " "); At this point description is already cut at half of terminal width. You h= ave to first translate and then cut the message and not the other way rou= nd > } > return 0; > } > Thanks, > > =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 --------------enig76B2B66F02012D96E9D28046 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 iF4EAREKAAYFAks0rQgACgkQNak7dOguQglPlAD+JGfIaXJ8y2crmYmBs+a6o9gj y2fCVw2n2gpTI7zARYEBALVfV7/ErJtjWEXruPUoXShPJX68hXuOq7chSt75Sbit =N9P4 -----END PGP SIGNATURE----- --------------enig76B2B66F02012D96E9D28046--