grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new function: grub_printfnl


From: Jordi Mallach
Subject: Re: new function: grub_printfnl
Date: Tue, 1 Dec 2009 00:12:37 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Sat, Nov 28, 2009 at 08:07:09PM +0100, Robert Millan wrote:
> > Gettextizzing files I have a very common situation:
> > grub_printf ("Bla bla bla\n");
> Uhm I wonder what's the common approach to this.  Maybe Jordi or someone
> else can tell?

I think this is going too far. I don't think there's a need to remove all
trailing nl's if the string is not going to be repeated in other slightly
different ways, because adapting this means making the code a bit
less readable for what I'm seeing.

In some cases, it looks like a good idea where it's worth the extra
effort; the gettext manual recommends plain strings and so on, but if it's
just a trailing new line, I think in most cases it's not worth it.
Translators know how to deal with them.

Jordi
-- 
Jordi Mallach PĂ©rez  --  Debian developer     http://www.debian.org/
address@hidden     address@hidden     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]