grub-devel
[Top][All Lists]
Advanced

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

gettext: commands/hdparm.c


From: Carles Pina i Estany
Subject: gettext: commands/hdparm.c
Date: Sun, 6 Dec 2009 18:25:33 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

Hello,

commands/hdparm.c has some grub_printf's:
  grub_printf ("Model:    \"%.40s\"\n", le16_to_char (tmp, &idw[27], 40));
  grub_printf ("Firmware: \"%.8s\"\n",  le16_to_char (tmp, &idw[23], 8));
  grub_printf ("Serial:   \"%.20s\"\n", le16_to_char (tmp, &idw[10], 20));

To have a proper alignment it needs to code something (dynamic "tab").

I could change it to:
  grub_printf (_("Model:\t\"%.40s\"\n"), le16_to_char (tmp, &idw[27], 40));
  grub_printf (_("Firmware:\t\"%.8s\"\n"),  le16_to_char (tmp, &idw[23], 8));
  grub_printf (_("Serial:\t\"%.20s\"\n"), le16_to_char (tmp, &idw[10], 20));

Or just don't translate Model/Firmware/Serial (leave like it's now)

Or do the dynamic coding that maybe it's not needed...

Thoughts?

-- 
Carles Pina i Estany
        http://pinux.info




reply via email to

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