From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KkRwa-000870-Rb for mharc-grub-devel@gnu.org; Mon, 29 Sep 2008 19:14:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkRwX-00086R-UH for grub-devel@gnu.org; Mon, 29 Sep 2008 19:14:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkRwX-00086F-En for grub-devel@gnu.org; Mon, 29 Sep 2008 19:14:17 -0400 Received: from [199.232.76.173] (port=48209 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkRwX-00086C-8N for grub-devel@gnu.org; Mon, 29 Sep 2008 19:14:17 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:54844 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkRwW-0005tE-Fa for grub-devel@gnu.org; Mon, 29 Sep 2008 19:14:17 -0400 Received: from pinux (60.61.221.87.dynamic.jazztel.es [87.221.61.60]) by mail.pina.cat (Postfix) with ESMTP id 87705288F30C6 for ; Tue, 30 Sep 2008 01:14:11 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id C373C1ABAF; Tue, 30 Sep 2008 01:14:03 +0200 (CEST) Date: Tue, 30 Sep 2008 01:14:03 +0200 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20080929231403.GC13509@pina.cat> References: <20080926081627.GA8732@pina.cat> <20080926083411.GA8845@pina.cat> <1222427611.4210.1.camel@fz.local> <20080926121909.GB9530@pina.cat> <20080928133907.GC23805@thorin> <20080928214954.GB5259@pina.cat> <20080929145911.GB12979@thorin> <48E122E7.5060004@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <48E122E7.5060004@nic.fi> User-Agent: Mutt/1.5.18 (2008-05-17) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: localization of Grub X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 23:14:18 -0000 Hello, On Sep/29/2008, Vesa J=E4=E4skel=E4inen wrote: > Robert Millan wrote: > > On Sun, Sep 28, 2008 at 11:49:54PM +0200, Carles Pina i Estany wrote: > >>> - gettextise the util tools, so they can be translated as normal > >>> programs. > >> ok! (I guess/hope that will be more "burocratic" work than new work) > >=20 > > It _is_ technical work I think, but less fun than the other part :-/ > >=20 > >> I don't expect to have time until 22th October (aprox.). I have more > >> interest in the second part (it's "newer") than first part, but firs= t > >> part has a practical and fast effects with (I think) less investment= . > >=20 > > The second part also builds on the first, to some extent. I.e. if yo= u want > > to test gettext support in GRUB itself, you need some strings to tran= slate, > > and these are provided by the .mo files which are only built if the b= uild > > system supports that, etc. >=20 > Before you guy's go too deep in detail I would like to remind special > requirements for graphical user interface related to localization. first step (as long as I understood from Robert) would be adding localization (say... gettext support) to everything under grub2/util . This is userspace and I hope that standard gettext will be enough for there. What do you think? (I hope that will be enough because gettext is used in lot of places, even when I cannot find any RTL support after a fast Googling :-( ) > You can't just printf stuff to screen in there. There has to be some > changes in logic how information is presented to user. Currently there > is lot of printf's in the code to display information and that is not > going to be too pretty for graphical menu as we need to display some > kind of console on event when there is something to be displayed. well, I think that this printf's will not look pretty in any language (I mean, it's not a localization problem) > Also try to think how different languages differentiate for displaying > certain types of information. Here is some simple example. (Bear in min= d > if there are grammatical errors or typos or so :)) >=20 > (eng) "See Figure 2 in page 14 for more details.' -> (fin) "Sivulla 14 > olevassa kuvassa 2 on enemm=E4n tietoa asiasta.' >=20 > Please notice difference in order of arguments in the languages. gettext supports it > Also there are some weird scripts that change order of characters. In > example for some right-to-left scripts seem to have this feature. On > example that I think belongs to this group is hebrew where they normall= y > write from right-to-left, but for English (or foreign) texts are still > visually correct. >=20 > In example: > "This is native 12and this is > English34, so weird." >=20 > Would be something like: > ".rdiew os ,42and this is English31 evitan si sihT" >=20 > So this subject really has more details than meets the eye in first > sight :) RTL problem is more about presentation, no? I will check how other programs do it. If the hebrew translator writes the correct translated string in the .po we will have it in Grub... but the alignment would be incorrect. It would look, for Left to Right people, like having everything aligned to the right. --=20 Carles Pina i Estany GPG id: 0x17756391 http://pinux.info