gettext
Are there any plans to implement gettext ? If not, I'd like to send a proposal.
Signature · 4 lines
Robert Millan My spam trap is [email protected]. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.
Quoted 2 lines · Robert Millan
Are there any plans to implement gettext ? If not, I'd like to send a proposal.
Only a plan. Nothing has been done until now. I think we have three main issues:
- how to prevent calling getttext before loading it (note: I don't want to put gettext in the kernel)
- what should be translated (how about error messages?)
- what should be done if a terminal is not capable of displaying most characters (falling back to original messages? just displaying garbage?)
Technically, it is not hard to implement gettext, but the policy side requires some more attention.
Okuji
Quoted 9 lines · Yoshinori K. Okuji
Quoted 2 lines · Robert Millan
Are there any plans to implement gettext ? If not, I'd like to send a proposal.
Only a plan. Nothing has been done until now. I think we have three main issues:
- how to prevent calling getttext before loading it (note: I don't want to put gettext in the kernel)
We could put a gettext() stub in the kernel, then have gettext.mod replace it.
Quoted 1 line
- what should be translated (how about error messages?)
I would suggest starting with the userland part. Currently, update-grub (well, 10_linux) already generates a translatable string, which ends up showing in the menu. This can be l10n'ed before implementing the gettext module, and it would get it started by implementing the build system part of things (I assume both userland and kernel are going to use the same message catalogs).
Quoted 2 lines
- what should be done if a terminal is not capable of displaying most characters (falling back to original messages? just displaying garbage?)
I think update-grub should detect wether the system locale is using utf-8, and if not, set it to C. It can also detect whether gfxterm is being enabled.
For users writing grub.cfg by hand, it's their responsability to enable gfxterm/whatever if they put utf-8 chars in it.
Signature · 4 lines
Robert Millan My spam trap is [email protected]. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.
Quoted 11 lines · Robert Millan
Quoted 2 lines · Yoshinori K. Okuji
- what should be done if a terminal is not capable of displaying most characters (falling back to original messages? just displaying garbage?)
I think update-grub should detect wether the system locale is using utf-8, and if not, set it to C. It can also detect whether gfxterm is being enabled.
For users writing grub.cfg by hand, it's their responsability to enable gfxterm/whatever if they put utf-8 chars in it.
Just a note that as character set is Unicode based it could be possible that some glyphs are not included in fonts. So either we just try to draw it with specified glyph (and get dummy glyph) or it should be detected by some party and just use glyphs that are included. Actually it is also possible to have 0 glyphs loaded ;). I am not so sure is this so nice, but thats the current state.