31004e6
From c061433a9a81b4114e4ed2b9c5c7784917b5e0d4 Mon Sep 17 00:00:00 2001
31004e6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
31004e6
Date: Tue, 7 May 2013 11:41:47 +0200
f74b50e
Subject: [PATCH 433/482] 	Mark few forgotten strings for translation.
31004e6
31004e6
---
31004e6
 ChangeLog                          | 4 ++++
31004e6
 grub-core/commands/acpihalt.c      | 4 ++--
31004e6
 grub-core/commands/nativedisk.c    | 2 +-
31004e6
 grub-core/loader/i386/pc/freedos.c | 2 +-
31004e6
 grub-core/normal/misc.c            | 4 +++-
31004e6
 util/grub-render-label.c           | 6 +++---
31004e6
 6 files changed, 14 insertions(+), 8 deletions(-)
31004e6
31004e6
diff --git a/ChangeLog b/ChangeLog
31004e6
index fc647b8..9c8a14a 100644
31004e6
--- a/ChangeLog
31004e6
+++ b/ChangeLog
31004e6
@@ -1,5 +1,9 @@
31004e6
 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
31004e6
 
31004e6
+	Mark few forgotten strings for translation.
31004e6
+
31004e6
+2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
31004e6
+
31004e6
 	* grub-core/loader/linux.c: Use grub_dprintf for debug statements
31004e6
 	rather than printf.
31004e6
 
31004e6
diff --git a/grub-core/commands/acpihalt.c b/grub-core/commands/acpihalt.c
31004e6
index a8014de..6f156fd 100644
31004e6
--- a/grub-core/commands/acpihalt.c
31004e6
+++ b/grub-core/commands/acpihalt.c
31004e6
@@ -311,13 +311,13 @@ main (int argc, char **argv)
31004e6
   buf = malloc (len);
31004e6
   if (!buf)
31004e6
     {
31004e6
-      printf ("Couldn't malloc buffer\n");
31004e6
+      printf (_("error: %s.\n"), _("out of memory"));
31004e6
       fclose (f);
31004e6
       return 2;
31004e6
     }
31004e6
   if (fread (buf, 1, len, f) != len)
31004e6
     {
31004e6
-      printf ("Read failed\n");
31004e6
+      printf (_("cannot read `%s': %s"), strerror (errno));
31004e6
       free (buf);
31004e6
       fclose (f);
31004e6
       return 2;
31004e6
diff --git a/grub-core/commands/nativedisk.c b/grub-core/commands/nativedisk.c
31004e6
index 453faad..71d7bc4 100644
31004e6
--- a/grub-core/commands/nativedisk.c
31004e6
+++ b/grub-core/commands/nativedisk.c
31004e6
@@ -301,7 +301,7 @@ static grub_command_t cmd;
31004e6
 
31004e6
 GRUB_MOD_INIT(nativedisk)
31004e6
 {
31004e6
-  cmd = grub_register_command ("nativedisk", grub_cmd_nativedisk, "[MODULE1 MODULE2 ...]",
31004e6
+  cmd = grub_register_command ("nativedisk", grub_cmd_nativedisk, N_("[MODULE1 MODULE2 ...]"),
31004e6
 			       N_("Switch to native disk drivers. If no modules are specified default set (pata,ahci,usbms,ohci,uhci,ehci) is used"));
31004e6
 }
31004e6
 
31004e6
diff --git a/grub-core/loader/i386/pc/freedos.c b/grub-core/loader/i386/pc/freedos.c
31004e6
index e685c6e..478f3c5 100644
31004e6
--- a/grub-core/loader/i386/pc/freedos.c
31004e6
+++ b/grub-core/loader/i386/pc/freedos.c
31004e6
@@ -145,7 +145,7 @@ grub_cmd_freedos (grub_command_t cmd __attribute__ ((unused)),
31004e6
   if (kernelsyssize > GRUB_FREEDOS_MAX_SIZE)
31004e6
     {
31004e6
       grub_error (GRUB_ERR_BAD_OS,
31004e6
-		  N_("file `%s' is too large"), argv[0]);
31004e6
+		  N_("the size of `%s' is too large"), argv[0]);
31004e6
       goto fail;
31004e6
     }
31004e6
 
31004e6
diff --git a/grub-core/normal/misc.c b/grub-core/normal/misc.c
31004e6
index bc6ce17..34d505e 100644
31004e6
--- a/grub-core/normal/misc.c
31004e6
+++ b/grub-core/normal/misc.c
31004e6
@@ -181,7 +181,9 @@ grub_normal_print_device_info (const char *name)
31004e6
       else
31004e6
 	grub_printf (_(" - Total size %llu%sKiB"),
31004e6
 		     (unsigned long long) (grub_disk_get_size (dev->disk) >> 1),
31004e6
-		     (grub_disk_get_size (dev->disk) & 1) ? ".5" : "");
31004e6
+		     /* TRANSLATORS: Replace dot with appropriate decimal separator for
31004e6
+			your language.  */
31004e6
+		     (grub_disk_get_size (dev->disk) & 1) ? _(".5") : "");
31004e6
 
31004e6
       grub_device_close (dev);
31004e6
     }
31004e6
diff --git a/util/grub-render-label.c b/util/grub-render-label.c
31004e6
index 32d3774..1b28ab7 100644
31004e6
--- a/util/grub-render-label.c
31004e6
+++ b/util/grub-render-label.c
31004e6
@@ -55,7 +55,7 @@ static struct argp_option options[] = {
31004e6
   {"bgcolor",  'b', N_("COLOR"), 0,
31004e6
    N_("use COLOR for background"), 0},
31004e6
   {"text",  't', N_("STR"), 0,
31004e6
-   N_("supply the string."), 0},
31004e6
+   N_("set the label to render."), 0},
31004e6
   {"output",  'o', N_("FILE"), 0,
31004e6
    N_("set output filename. Default is STDOUT"), 0},
31004e6
   {"font",  'f', N_("FILE"), 0,
31004e6
@@ -89,13 +89,13 @@ argp_parser (int key, char *arg, struct argp_state *state)
31004e6
     case 'b':
31004e6
       err = grub_video_parse_color (arg, &arguments->bgcolor);
31004e6
       if (err)
31004e6
-	grub_util_error (_("Invalud color `%s'"), arg);
31004e6
+	grub_util_error (_("invalid color specification `%s'"), arg);
31004e6
       break;
31004e6
 
31004e6
     case 'c':
31004e6
       err = grub_video_parse_color (arg, &arguments->fgcolor);
31004e6
       if (err)
31004e6
-	grub_util_error (_("Invalud color `%s'"), arg);
31004e6
+	grub_util_error (_("invalid color specification `%s'"), arg);
31004e6
       break;
31004e6
 
31004e6
     case 'f':
31004e6
-- 
31004e6
1.8.2.1
31004e6