SOC - SGD based on grub2 - Menu and scripting status
I've reading the G'SOC document:
http://www.gnu.org/software/grub/grub-soc.html
and I've been tented to add a new proposal for grub2.
As you all should have guessed it would a Super Grub Disk ( http://adrian15.raulete.net/grub/ ) but not based on grub legacy but grub2.
If I want the project to be feasible I need that the grub2 api relative
to menues and scriptings is fixed. That means that the name of the commands and its behavior don't change since I begin the project to the end of it.
So here are some questions that have arised...
1) Marco Gerards: Do you think that commands/functions/variables related to menues files are going to change a lot? But I don't mean RIGHT NOW. I mean in the beginnings of SOC... which I don't know... let's see... 23th May. (in one month time).
If these commands are available where should I get a list of them and
their behaviour?
2) Do you like the Super Grub2 CD name... or should it be Grub2 CD or Grub CD and that's all? Grub Rescue CD perhaps?
3) What features would you like to see apart from the ones that are already implemented in Super Grub Disk ( http://adrian15.raulete.net/grub/tiki-index.php?page=En )?
4) What is the best way for dealing with languages and translations when developing?
5) I need to define "something" (In my grub legacy fork is a menu.lst) that lets me choose the harddisk-partition which I want to work on. Can I make it easily?
Can Grub2 api write me in an array or a similar the partitions that can read in a given hard disk? So that if there are 3 partitions they are saved into an array of size 3?
adrian15
adrian15 <[email protected]> writes:
Hi,
Quoted 3 lines
As you all should have guessed it would a Super Grub Disk (
http://adrian15.raulete.net/grub/ ) but not based on grub legacy but grub2.
Oh, nice/
Quoted 4 lines
If I want the project to be feasible I need that the grub2 api
relative to menues and scriptings is fixed. That means that the name of the commands and its behavior don't change since I begin the project to the end of it.
I can not make such promise. But I am open to feature suggestions as far as I did not make any promises or so yet.
Quoted 6 lines
So here are some questions that have arised...
1) Marco Gerards: Do you think that commands/functions/variables related to menues files are going to change a lot?
But I don't mean RIGHT NOW. I mean in the beginnings of SOC... which I don't know... let's see... 23th May. (in one month time).
The will keep changing, I think.
Quoted 2 lines
If these commands are available where should I get a list of
them and their behaviour?
Not yet. We still hope someone will write good user documentation.
Quoted 2 lines
2) Do you like the Super Grub2 CD name... or should it be Grub2 CD or Grub CD and that's all? Grub Rescue CD perhaps?
I personally do not have a strong opinion about this. :-)
Quoted 2 lines
4) What is the best way for dealing with languages and translations when developing?
We are thinking about i18n support. This is something about this on the wiki, I think.
Quoted 3 lines
5) I need to define "something" (In my grub legacy fork is a menu.lst) that lets me choose the harddisk-partition which I want to work on. Can I make it easily?
You mean as a variable? That's possible.
Quoted 3 lines
Can Grub2 api write me in an array or a similar the partitions that can read in a given hard disk? So that if there are 3 partitions they are saved into an array of size 3?
No, at least not yet. Scripting is in continuous development ATM.
--
Marco
Quoted 5 lines · Marco Gerards
Quoted 2 lines
4) What is the best way for dealing with languages and translations when developing?
We are thinking about i18n support. This is something about this on the wiki, I think.
I don't think this part is described well in the wiki. So I describe my idea here:
- GRUB needs to have a locale variable to determine a language.
- GRUB needs to have gettext or something similar to translate messages.
- GRUB needs to be able to generate .po files compatible with gettext.
- GRUB needs to support message translations by scripting as well as by C code.
These are not implemented at all yet, but not difficult. I expect that this would take 2 weeks, if one works in full time.
Okuji
Quoted 7 lines · Yoshinori K. Okuji
Quoted 5 lines · Marco Gerards
Quoted 2 lines
4) What is the best way for dealing with languages and translations when developing?
We are thinking about i18n support. This is something about this on the wiki, I think.
Quoted 8 lines
I don't think this part is described well in the wiki. So I describe my idea here:
- GRUB needs to have a locale variable to determine a language.
- GRUB needs to have gettext or something similar to translate messages.
- GRUB needs to be able to generate .po files compatible with gettext.
Will this mean Adrian can use it for menu entries as well? I think that is what he wants to do.
--
Marco
Quoted 2 lines · Marco Gerards
Will this mean Adrian can use it for menu entries as well? I think that is what he wants to do.
In my idea, yes. I can say anything before implementing. ;)
Okuji
Quoted 10 lines · Marco Gerards
Quoted 8 lines · Yoshinori K. Okuji
Quoted 4 lines · Marco Gerards
Quoted 2 lines
4) What is the best way for dealing with languages and translations when developing?
We are thinking about i18n support. This is something about this on the wiki, I think.
I don't think this part is described well in the wiki. So I describe my idea here:
Quoted 8 lines
Quoted 5 lines
- GRUB needs to have a locale variable to determine a language.
- GRUB needs to have gettext or something similar to translate messages.
- GRUB needs to be able to generate .po files compatible with gettext.
Will this mean Adrian can use it for menu entries as well? I think that is what he wants to do.
I think this is one of the possibilities. Giving support to script in form like this:
menuentry $gettext("My menu entry text") {
}
Though gettext is not perfect in all places, but could be enough for us.
I am still wondering what are the features of the scripting language. Marco could you write some summary of your ideas somewhere and some syntaxical examples?
Thanks,
Vesa Jääskeläinen
Quoted 20 lines · Vesa Jääskeläinen
Quoted 10 lines · Marco Gerards
Quoted 8 lines · Yoshinori K. Okuji
Quoted 4 lines · Marco Gerards
Quoted 2 lines
4) What is the best way for dealing with languages and translations when developing?
We are thinking about i18n support. This is something about this on the wiki, I think.
I don't think this part is described well in the wiki. So I describe my idea here:
Quoted 8 lines
Quoted 5 lines
- GRUB needs to have a locale variable to determine a language.
- GRUB needs to have gettext or something similar to translate messages.
- GRUB needs to be able to generate .po files compatible with gettext.
Will this mean Adrian can use it for menu entries as well? I think that is what he wants to do.
Quoted 8 lines
I think this is one of the possibilities. Giving support to script in form like this:
menuentry $gettext("My menu entry text") {
}
Though gettext is not perfect in all places, but could be enough for us.
That sounds sane to me.
Quoted 3 lines
I am still wondering what are the features of the scripting language. Marco could you write some summary of your ideas somewhere and some syntaxical examples?
Sure. I wrote a lot of emails about it. But it might be nice to have something more coherent on the wiki. I'll work on
that... someday. :)
--
Marco