From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: gettext patch (beta)
Date: Mon, 9 Feb 2009 15:39:26 +0100 [thread overview]
Message-ID: <20090209143926.GB4841@thorin> (raw)
In-Reply-To: <20090124142604.GB27695@pina.cat>
Hi Carles
On Sat, Jan 24, 2009 at 03:26:04PM +0100, Carles Pina i Estany wrote:
> Index: Makefile.in
> ===================================================================
> --- Makefile.in (revision 1954)
> +++ Makefile.in (working copy)
> @@ -112,6 +112,7 @@
> PKGDATA = $(pkgdata_DATA) $(pkgdata_SRCDIR)
> PROGRAMS = $(bin_UTILITIES) $(sbin_UTILITIES)
> SCRIPTS = $(bin_SCRIPTS) $(sbin_SCRIPTS) $(grub-mkconfig_SCRIPTS)
> +GRUBD = $(srcdir)/util/grub.d
If you're adding GRUBD, perhaps you can use it in other places that currently
hardcode "util/grub.d".
> +"Content-Type: text/plain; charset=CHARSET\n"
That should be charset=utf-8
> +" Presioneu retorn per arrancar el SO seleccionat, 'e' editar\n"
"l'SO" ;-)
> +" les comandes abans d'arrancar, 'c' per línia d'ordres."
The 'í' should be in utf-8 (it displays in utf-8 here because
your mailer set Content-Type to iso-8859-1).
> +#: util/grub.d/10_linux.in:148
> +#, sh-format
> +msgid "${OS}, linux ${version} (single-user mode)"
> +msgstr "${OS}, linux ${version} (mode mono-usuari)"
I wonder if we should replace the original string "single-user mode" with
something else. Novice users find it confusing, since they may assume
"single-user mode" is the normal mode for them (a single user) to use
the computer.
> + grub_free(current_string);
> + min=current;
> [...]
> + current = (max+min)/2;
Remember to add spaces in such places.
> + if (magic != 0x950412de)
This should be a macro. Also, it probably needs endian conversion (use the
macros in types.h).
> + /* Testing:
> + grub_register_command ("_", grub_cmd_translate, GRUB_COMMAND_FLAG_BOTH,
> + "_", "internalization support trans", 0);
> + */
We could register the "gettext" command and leave it there by default.
> +else
> + echo "gettext module is not available"
> +fi
This should have ">&2", or it might end up as part of grub.cfg. Also it
could be more descriptive (like, letting user know text output will be in
English).
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-02-09 14:40 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-21 21:17 gettext patch (beta) Carles Pina i Estany
2009-01-21 21:38 ` Vesa Jääskeläinen
2009-01-21 21:48 ` Carles Pina i Estany
2009-01-21 22:08 ` Vesa Jääskeläinen
2009-01-21 22:21 ` Carles Pina i Estany
2009-01-24 10:59 ` Niels Böhm
2009-02-07 21:30 ` Robert Millan
2009-02-07 21:26 ` unicode font slowness (Re: gettext patch (beta)) Robert Millan
2009-02-08 8:47 ` Colin D Bennett
2009-01-24 14:26 ` gettext patch (beta) Carles Pina i Estany
2009-01-24 15:09 ` Carles Pina i Estany
2009-02-09 14:39 ` Robert Millan [this message]
2009-02-10 1:58 ` BandiPat
2009-02-21 13:02 ` "single-user mode" string (Re: gettext patch (beta)) Robert Millan
2009-02-21 16:07 ` BandiPat
2009-02-21 19:49 ` Robert Millan
[not found] ` <20090221201015.GA4618@piper.oerlikon.madduck.net>
2009-02-21 21:08 ` Robert Millan
2009-02-22 0:40 ` BandiPat
2009-02-27 21:37 ` Robert Millan
2009-04-10 22:47 ` gettext patch (beta) phcoder
2009-04-14 8:54 ` Carles Pina i Estany
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090209143926.GB4841@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.