Skip to contentSkip to conversation

grub_error messages

DISCUSSION Carles Pina i Estany 3 participants 4 messages Dec 21, 2009 – Dec 22, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

This comes from "gettext: commands/*" thread, but I feel that it's already far from gettext :-)

Doing, in Grub:
grep grub_error commands/*

I would say that there are more strings without capitalization and without full stop than with.

Then, two questions:
a) How we want these strings? I'll do a patch, but I prefer to agree before

b) At beginning I thought that we would not gettext error messages, but I see that lot of these messages appears to the end user. Do we gettext using N_(" ") and then where it's printed I use _(" ") ? I would say yes.

Thanks,

Signature · 2 lines
Carles Pina i Estany
	http://pinux.info
#1 lore raw
Quoted 4 lines · Carles Pina i Estany

b) At beginning I thought that we would not gettext error messages, but I see that lot of these messages appears to the end user. Do we gettext using N_(" ") and then where it's printed I use _(" ") ? I would say yes.

No! Don't use any of N_() or _() if the message isn't meant to be translated. If it's extracted into the pot file but then it's not used by GRUB (not being marked with the necessary gettext call), it's a waste of time for translators, of course.

Signature · 3 lines
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/
#2 lore raw
Quoted 8 lines · Jordi Mallach
Quoted 5 lines · Carles Pina i Estany

b) At beginning I thought that we would not gettext error messages, but I see that lot of these messages appears to the end user. Do we gettext using N_(" ") and then where it's printed I use _(" ") ? I would say yes.

Quoted 6 lines

No! Don't use any of N_() or _() if the message isn't meant to be translated. If it's extracted into the pot file but then it's not used by GRUB (not being marked with the necessary gettext call), it's a waste of time for translators, of course.

Jordi, I think you misunderstand. What Carles propose is to do real gettext call in grub_error and not before calling it. We already use N_ for this purpose.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#3 lore raw

Hi,

Quoted 15 lines · Vladimir '??-coder/phcoder' Serbinenko
Quoted 8 lines · Jordi Mallach
Quoted 5 lines · Carles Pina i Estany

b) At beginning I thought that we would not gettext error messages, but I see that lot of these messages appears to the end user. Do we gettext using N_(" ") and then where it's printed I use _(" ") ? I would say yes.

Quoted 6 lines

No! Don't use any of N_() or _() if the message isn't meant to be translated. If it's extracted into the pot file but then it's not used by GRUB (not being marked with the necessary gettext call), it's a waste of time for translators, of course.

Quoted 3 lines

Jordi, I think you misunderstand. What Carles propose is to do real gettext call in grub_error and not before calling it. We already use N_ for this purpose.

Vladimir: you got my point.

In my mail I mixed a bit two messages:
a) Asking confirmation that we will translate that messages (that my first thought was "not needed" but then I see that appears more than I was thinking)

b) Implementation.

Vladimir and everybody: I think that these strings are printed by grub_print_error (void), (kern/err.c), in this way:

        grub_err_printf ("error: %s\n", grub_errmsg);

so we should NOT capitalise the message strings (in English, after colon is not capitalised). Plus I'm thinking to do:

        grub_err_printf ("error: %s.\n", _(grub_errmsg));

So the "." is not part of each string and we save some bytes.

What do you think?

I haven't tested what I said above...

Signature · 2 lines
Carles Pina i Estany
	http://pinux.info