Hello, Gettextizzing files I have a very common situation: grub_printf ("Bla bla bla\n");
That I have to change to: grub_printf (_("Bla bla bla")); grub_putchar ('\n'); Any problem to apply the attached patch with the export where needed (I haven't compiled, just written the idea). So I could change: grub_printf ("Bla bla bla\n"); by: grub_printfnl (_("Bla bla bla")); (nl for new line) Other question: doing this "trivial" change and adding some more _("") in file means that I have to change the copyright date? Thanks, -- Carles Pina i Estany http://pinux.info
=== modified file 'kern/misc.c' --- kern/misc.c 2009-11-24 21:42:14 +0000 +++ kern/misc.c 2009-11-28 11:10:48 +0000 @@ -126,6 +126,21 @@ grub_printf (const char *fmt, ...) return ret; } +int grub_printfnl (const char *fmt, ...) +{ + va_list ap; + int ret; + + va_start (ap, fmt); + ret = grub_vprintf (fmt, ap); + va_end (ap); + + grub_putchar ('\n'); + ret++; + + return ret; +} + #if defined (APPLE_CC) && ! defined (GRUB_UTIL) int grub_err_printf (const char *fmt, ...)
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel