Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L9tEq-0002b4-MI for mharc-grub-devel@gnu.org; Mon, 08 Dec 2008 22:26:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9tEn-0002a8-9p for grub-devel@gnu.org; Mon, 08 Dec 2008 22:26:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9tEl-0002Zs-Mg for grub-devel@gnu.org; Mon, 08 Dec 2008 22:26:17 -0500 Received: from [199.232.76.173] (port=35187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9tEl-0002Zp-Gq for grub-devel@gnu.org; Mon, 08 Dec 2008 22:26:15 -0500 Received: from fg-out-1718.google.com ([72.14.220.155]:51553) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9tEk-000796-Ey for grub-devel@gnu.org; Mon, 08 Dec 2008 22:26:15 -0500 Received: by fg-out-1718.google.com with SMTP id l26so1078713fgb.30 for ; Mon, 08 Dec 2008 19:26:13 -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:to :subject:in-reply-to:mime-version:content-type:references; bh=6AEH8pe0LktSJbOqMMsHpNzh3TPeUgkvS8kAL2exf94=; b=qOknj7nDX8yrpYZhX0WVidAb8RJNkq1PAt617+YznV4W1gmEK/SnN1D1g2+bZ0wEPU bnQa2kRJKkrIPo+Om38y3SfvvLB3CHE2wFU8iJGPS6PB+eCvUdrW83xbxJKqWwULbwtM A3PMY83EvPhzf4CI2yTpXyUg8pKUggEsoTOeQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=D8wxYImo5s/kQo4Sg4Z8stgEle8agge60v9xC/JXgZvW+S/fYC9PSQJVbv48yWFiCp lgWSInSrqYjiRVBnFm353cnphQPZqGV65l3VnGcOmAJneuoPu4AAuZHT4g+b7+wOlcyg ZjCOjcGLbDa9hlh34FhTnr/f1pLauRsMIuqvM= Received: by 10.86.31.18 with SMTP id e18mr3060259fge.72.1228793173284; Mon, 08 Dec 2008 19:26:13 -0800 (PST) Received: by 10.86.26.12 with HTTP; Mon, 8 Dec 2008 19:26:13 -0800 (PST) Message-ID: <28db3f450812081926u721098fbk6533f4e4972a4980@mail.gmail.com> Date: Tue, 9 Dec 2008 11:26:13 +0800 From: "Alan Zheng" To: grub-devel@gnu.org In-Reply-To: <493d54e0.161e640a.7c14.ffffdcaeSMTPIN_ADDED@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_168140_23001771.1228793173273" References: <493d54e0.161e640a.7c14.ffffdcaeSMTPIN_ADDED@mx.google.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Grub-devel Digest, Vol 58, Issue 8 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: Tue, 09 Dec 2008 03:26:17 -0000 ------=_Part_168140_23001771.1228793173273 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello James: Thanks for given me the ideas, it looks I have to compile grub-1.96 on 32 bit machine. :-) Alan 2008/12/9 > Send Grub-devel mailing list submissions to > grub-devel@gnu.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gnu.org/mailman/listinfo/grub-devel > or, via email, send a message with subject or body 'help' to > grub-devel-request@gnu.org > > You can reach the person managing the list at > grub-devel-owner@gnu.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Grub-devel digest..." > > > Today's Topics: > > 1. Re: localization of Grub (Carles Pina i Estany) > 2. configure fail for grub (Alan Zheng) > 3. RE: configure fail for grub (James Shewey) > 4. Re: localization of Grub (Carles Pina i Estany) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 8 Dec 2008 00:33:08 +0100 > From: Carles Pina i Estany > Subject: Re: localization of Grub > To: The development of GRUB 2 > Message-ID: <20081207233308.GA15844@pina.cat> > Content-Type: text/plain; charset=us-ascii > > > Hello again, > > Let me to re-open this thread, where we were discussing about > localization and translation: > > On Sep/28/2008, Robert Millan wrote: > > On Fri, Sep 26, 2008 at 02:19:09PM +0200, Carles Pina i Estany wrote: > > > > > > > > This is wanted but nobody did work on this yet afaik. > > > > It would be good if there would be multiple keyboard layouts too I > > > > think. > > > > > > I think that different keyboard layouts it's even more important than > > > different languages... > > > > > > Do we have any plan? Maybe I will take a look (but during 20 days in > > > october I will not have lot of time :-( so not sure if I will do it > > > after October or not, I will see...) > > > > > > Any suggestion for the implementation? How user would change the > > > keyboard layout? Or maybe at beginning some setting (variable) at > > > grub.cfg? > > > > Hi, > > > > It's very nice you want to work on localisation. This is a very welcome > > feature (and I think it's been discussed before). > > > > (I assume we're talking about a gettext equivalent rather than keyboard > > layouts, which is a separate -but also nice- feature) > > > > My recommendation for a roadmap (please comment/discuss/challenge/etc!) > would > > be: > > > > - gettextise the util tools, so they can be translated as normal > programs. > > Do you mean the strings that are generated in standard Linux user-space > and written to grub.cfg? > > What do you (everybody in the list) think about the text help that > appears here and there (output of Grub -usually shell- commands?) > Needed? Or these texts are good enough in English (like commands in the > programming languages) > > > - add support to grub (a gettext module or so) so that it can load our > .mo > > files and obtain strings from it, by implementing gettext() (aka > _()). > > This part is more clear (at least theoretically, of course :-) ) > I understand that all error messages, messages, etc. that Grub prints > while Grub is executing should be translated. > > My understanding is that we should have some module to handle some > function (eg. _()), that would read some variable to choose to which > language, if available, translate some string. Like gettext, as you > said. > > > I'd also recommend making the user interface similar to posix locales, > for > > consistency's sake (which you know I hold dearly ;-)). > > I agree > > I'm not familiar in the .mo internals, I will take a look. I understand > that this gives us quite much flexibility, if we would implement > everything (like argument orders, etc.) > > > Even if you only have time/interest to implement the first part, this > > is already a significant benefit. Keep in mind that grub.cfg > > generation is done by update-grub which happens entirely on userland, > > so we get translated menu entries that way. > > As I said before by mail, grub.cfg don't have lot of UI strings. > Some, but not a lot. > > I understand that we/I should adapt some scripts using, for example, this > guideline?: > > http://www.gnu.org/software/automake/manual/gettext/Preparing-Shell-Scripts.html > > (I haven't tested now, I think that some years ago I did some tests with > Bash and gettext) > > -- > Carles Pina i Estany GPG id: 0x17756391 > http://pinux.info > > > > > ------------------------------ > > Message: 2 > Date: Mon, 8 Dec 2008 16:50:31 +0800 > From: "Alan Zheng" > Subject: configure fail for grub > To: grub-devel@gnu.org > Message-ID: > <28db3f450812080050i4b817d08r72c1405610c8654f@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello All: > > When I configure grub-1.96, I got following error message: > > configure: error: neither start nor _start is defined > > Could anybody give me some ideas for it? > > -- > Best Regards > > Alan Zheng > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.gnu.org/pipermail/grub-devel/attachments/20081208/75530ae2/attachment.html > > ------------------------------ > > Message: 3 > Date: Mon, 8 Dec 2008 07:39:13 -0500 > From: James Shewey > Subject: RE: configure fail for grub > To: The development of GRUB 2 > Message-ID: <493d1565.4403be0a.0a23.ffffefb8@mx.google.com> > Content-Type: text/plain; charset="iso-8859-1" > > Grub will not currently compile on 64 bit distros. Try compiling with a 32 > bit live cd or a 32 bit VM (you can try virtualbox.org for this) and then > copying the requisite files to the 64 bit OS. > > -----Original Message----- > From: Alan Zheng > Sent: Monday, December 08, 2008 3:50 AM > To: grub-devel@gnu.org > Subject: configure fail for grub > > Hello All: > > When I configure grub-1.96, I got following error message: > > configure: error: neither start nor _start is defined > > Could anybody give me some ideas for it? > > -- > Best Regards > > Alan Zheng > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.gnu.org/pipermail/grub-devel/attachments/20081208/ebcd4533/attachment.html > > ------------------------------ > > Message: 4 > Date: Mon, 8 Dec 2008 15:33:49 +0100 > From: Carles Pina i Estany > Subject: Re: localization of Grub > To: The development of GRUB 2 > Message-ID: <20081208143349.GA6086@pina.cat> > Content-Type: text/plain; charset=us-ascii > > > Hello, > > On Dec/08/2008, Carles Pina i Estany wrote: > > > I understand that we/I should adapt some scripts using, for example, this > > guideline?: > > > http://www.gnu.org/software/automake/manual/gettext/Preparing-Shell-Scripts.html > > > > (I haven't tested now, I think that some years ago I did some tests with > > They use gettext.sh file, in my Debian is in: > /usr/bin/gettext.sh, in package gettext-base . Do you think that this is > the best way? Do we assume that gettext.sh it's there, or we provide > backfail mechanism? (for example I don't think that this file comes with > cygwin...) > > I can translate in two ways: > ---- > echo $(gettext "hello world") > eval_gettext "hello world";echo > ---- > > so, with eval_gettext (comes from gettext.sh) or from gettext binary > straight. > > eval_gettext helps a bit substituing shell variables: > # eval_gettext MSGID > # looks up the translation of MSGID and substitutes shell variables in the > # result. > eval_gettext () { > gettext "$1" | (export PATH `envsubst --variables "$1"`; envsubst > "$1") > } > > But we could do it without gettext.sh > > Which method do you think that we should use? > With failback option? > > Thanks, > > -- > Carles Pina i Estany GPG id: 0x17756391 > http://pinux.info > > > > > ------------------------------ > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > > End of Grub-devel Digest, Vol 58, Issue 8 > ***************************************** > -- Best Regards Alan Zheng ------=_Part_168140_23001771.1228793173273 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello James:

Thanks for given me the ideas, it looks I have to compile grub-1.96 on 32 bit machine. :-)

Alan




2008/12/9 <grub-devel-request@gnu.org>
Send Grub-devel mailing list submissions to
       grub-devel@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.gnu.org/mailman/listinfo/grub-devel
or, via email, send a message with subject or body 'help' to
       grub-devel-request@gnu.org

You can reach the person managing the list at
       grub-devel-owner@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Grub-devel digest..."


Today's Topics:

  1. Re: localization of Grub (Carles Pina i Estany)
  2. configure fail for grub (Alan Zheng)
  3. RE: configure fail for grub (James Shewey)
  4. Re: localization of Grub (Carles Pina i Estany)


----------------------------------------------------------------------

Message: 1
Date: Mon, 8 Dec 2008 00:33:08 +0100
From: Carles Pina i Estany <carles@pina.cat>
Subject: Re: localization of Grub
To: The development of GRUB 2 <grub-devel@gnu.org>
Message-ID: <20081207233308.GA15844@pina.cat>
Content-Type: text/plain; charset=us-ascii


Hello again,

Let me to re-open this thread, where we were discussing about
localization and translation:

On Sep/28/2008, Robert Millan wrote:
> On Fri, Sep 26, 2008 at 02:19:09PM +0200, Carles Pina i Estany wrote:
> > >
> > > This is wanted but nobody did work on this yet afaik.
> > > It would be good if there would be multiple keyboard layouts too I
> > > think.
> >
> > I think that different keyboard layouts it's even more important than
> > different languages...
> >
> > Do we have any plan? Maybe I will take a look (but during 20 days in
> > october I will not have lot of time :-( so not sure if I will do it
> > after October or not, I will see...)
> >
> > Any suggestion for the implementation? How user would change the
> > keyboard layout? Or maybe at beginning some setting (variable) at
> > grub.cfg?
>
> Hi,
>
> It's very nice you want to work on localisation.  This is a very welcome
> feature (and I think it's been discussed before).
>
> (I assume we're talking about a gettext equivalent rather than keyboard
> layouts, which is a separate -but also nice- feature)
>
> My recommendation for a roadmap (please comment/discuss/challenge/etc!) would
> be:
>
>   - gettextise the util tools, so they can be translated as normal programs.

Do you mean the strings that are generated in standard Linux user-space
and written to grub.cfg?

What do you (everybody in the list) think about the text help that
appears here and there (output of Grub -usually shell- commands?)
Needed? Or these texts are good enough in English (like commands in the
programming languages)

>   - add support to grub (a gettext module or so) so that it can load our .mo
>     files and obtain strings from it, by implementing gettext() (aka _()).

This part is more clear (at least theoretically, of course :-) )
I understand that all error messages, messages, etc. that Grub prints
while Grub is executing should be translated.

My understanding is that we should have some module to handle some
function (eg. _()), that would read some variable to choose to which
language, if available, translate some string. Like gettext, as you
said.

> I'd also recommend making the user interface similar to posix locales, for
> consistency's sake (which you know I hold dearly ;-)).

I agree

I'm not familiar in the .mo internals, I will take a look. I understand
that this gives us quite much flexibility, if we would implement
everything (like argument orders, etc.)

> Even if you only have time/interest to implement the first part, this
> is already a significant benefit.  Keep in mind that grub.cfg
> generation is done by update-grub which happens entirely on userland,
> so we get translated menu entries that way.

As I said before by mail, grub.cfg don't have lot of UI strings.
Some, but not a lot.

I understand that we/I should adapt some scripts using, for example, this
guideline?:
http://www.gnu.org/software/automake/manual/gettext/Preparing-Shell-Scripts.html

(I haven't tested now, I think that some years ago I did some tests with
Bash and gettext)

--
Carles Pina i Estany            GPG id: 0x17756391
       http://pinux.info




------------------------------

Message: 2
Date: Mon, 8 Dec 2008 16:50:31 +0800
From: "Alan Zheng" <machinecat1666@gmail.com>
Subject: configure fail for grub
To: grub-devel@gnu.org
Message-ID:
       <28db3f450812080050i4b817d08r72c1405610c8654f@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello All:

When I configure grub-1.96, I got following error message:

configure: error: neither start nor _start is defined

Could anybody give me some ideas for it?

--
Best Regards

Alan Zheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gnu.org/pipermail/grub-devel/attachments/20081208/75530ae2/attachment.html

------------------------------

Message: 3
Date: Mon, 8 Dec 2008 07:39:13 -0500
From: James Shewey <jdshewey@gmail.com>
Subject: RE: configure fail for grub
To: The development of GRUB 2 <grub-devel@gnu.org>
Message-ID: <493d1565.4403be0a.0a23.ffffefb8@mx.google.com>
Content-Type: text/plain; charset="iso-8859-1"

Grub will not currently compile on 64 bit distros. Try compiling with a 32 bit live cd or a 32 bit VM (you can try virtualbox.org for this) and then copying the requisite files to the 64 bit OS.

-----Original Message-----
From: Alan Zheng <machinecat1666@gmail.com>
Sent: Monday, December 08, 2008 3:50 AM
To: grub-devel@gnu.org
Subject: configure fail for grub

Hello All:

When I configure grub-1.96, I got following error message:

configure: error: neither start nor _start is defined

Could anybody give me some ideas for it?

--
Best Regards

Alan Zheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gnu.org/pipermail/grub-devel/attachments/20081208/ebcd4533/attachment.html

------------------------------

Message: 4
Date: Mon, 8 Dec 2008 15:33:49 +0100
From: Carles Pina i Estany <carles@pina.cat>
Subject: Re: localization of Grub
To: The development of GRUB 2 <grub-devel@gnu.org>
Message-ID: <20081208143349.GA6086@pina.cat>
Content-Type: text/plain; charset=us-ascii


Hello,

On Dec/08/2008, Carles Pina i Estany wrote:

> I understand that we/I should adapt some scripts using, for example, this
> guideline?:
> http://www.gnu.org/software/automake/manual/gettext/Preparing-Shell-Scripts.html
>
> (I haven't tested now, I think that some years ago I did some tests with

They use gettext.sh file, in my Debian is in:
/usr/bin/gettext.sh, in package gettext-base . Do you think that this is
the best way? Do we assume that gettext.sh it's there, or we provide
backfail mechanism? (for example I don't think that this file comes with
cygwin...)

I can translate in two ways:
----
echo $(gettext "hello world")
eval_gettext "hello world";echo
----

so, with eval_gettext (comes from gettext.sh) or from gettext binary
straight.

eval_gettext helps a bit substituing shell variables:
# eval_gettext MSGID
# looks up the translation of MSGID and substitutes shell variables in the
# result.
eval_gettext () {
 gettext "$1" | (export PATH `envsubst --variables "$1"`; envsubst
"$1")
}

But we could do it without gettext.sh

Which method do you think that we should use?
With failback option?

Thanks,

--
Carles Pina i Estany            GPG id: 0x17756391
       http://pinux.info




------------------------------

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


End of Grub-devel Digest, Vol 58, Issue 8
*****************************************



--
Best Regards

Alan Zheng
------=_Part_168140_23001771.1228793173273--