]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 3 Mar 2012 11:59:28 +0000 (12:59 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 3 Mar 2012 11:59:28 +0000 (12:59 +0100)
* grub-core/commands/keystatus.c: Likewise.
* grub-core/commands/loadenv.c: Likewise.
* grub-core/commands/probe.c: Likewise.
* grub-core/commands/regexp.c: Likewise.
* grub-core/commands/true.c: Likewise.
* grub-core/commands/videoinfo.c: Likewise.
* grub-core/disk/cryptodisk.c: Likewise.
* grub-core/disk/ldm.c: Likewise.
* grub-core/disk/loopback.c: Likewise.
* grub-core/disk/luks.c: Likewise.
* grub-core/fs/zfs/zfsinfo.c: Likewise.
* grub-core/kern/disk.c: Likewise.
* grub-core/kern/emu/hostdisk.c: Likewise.

15 files changed:
ChangeLog
grub-core/commands/acpihalt.c
grub-core/commands/keystatus.c
grub-core/commands/loadenv.c
grub-core/commands/probe.c
grub-core/commands/regexp.c
grub-core/commands/true.c
grub-core/commands/videoinfo.c
grub-core/disk/cryptodisk.c
grub-core/disk/ldm.c
grub-core/disk/loopback.c
grub-core/disk/luks.c
grub-core/fs/zfs/zfsinfo.c
grub-core/kern/disk.c
grub-core/kern/emu/hostdisk.c

index ec639e40b3e43930a343021aaa4ed9b6465c50d6..a88d906097111859776328f7820ce482676f8807 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
+       * grub-core/commands/keystatus.c: Likewise.
+       * grub-core/commands/loadenv.c: Likewise.
+       * grub-core/commands/probe.c: Likewise.
+       * grub-core/commands/regexp.c: Likewise.
+       * grub-core/commands/true.c: Likewise.
+       * grub-core/commands/videoinfo.c: Likewise.
+       * grub-core/disk/cryptodisk.c: Likewise.
+       * grub-core/disk/ldm.c: Likewise.
+       * grub-core/disk/loopback.c: Likewise.
+       * grub-core/disk/luks.c: Likewise.
+       * grub-core/fs/zfs/zfsinfo.c: Likewise.
+       * grub-core/kern/disk.c: Likewise.
+       * grub-core/kern/emu/hostdisk.c: Likewise.
+
 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
index b9092cc10f283675222d8ad3d0960c981c62d6bd..3db224d4d5b784df9c8129ab6b40214856f49414 100644 (file)
@@ -355,6 +355,7 @@ grub_acpi_halt (void)
 
   grub_millisleep (1500);
 
+  /* TRANSLATORS: It's computer shutdown using ACPI, not disabling ACPI.  */
   grub_puts_ (N_("ACPI shutdown failed"));
 }
 #endif
index 6f706ae4064daae8eb553ffbf349ea70b0ad1389..0925c6a0f9e3ddbc35690983befa0b0045d1da07 100644 (file)
@@ -27,6 +27,8 @@ GRUB_MOD_LICENSE ("GPLv3+");
 
 static const struct grub_arg_option options[] =
   {
+    /* TRANSLATORS: "Check" in a sense that if this key is pressed then
+       "true" is returned, otherwise "false".  */
     {"shift", 's', 0, N_("Check Shift key."), 0, 0},
     {"ctrl", 'c', 0, N_("Check Control key."), 0, 0},
     {"alt", 'a', 0, N_("Check Alt key."), 0, 0},
index 4dcb5d49ac4309f9e2030745c829fe7fdbedfc8d..18ebb7eab83f66981e17f319e933ca6fc79c53e6 100644 (file)
@@ -32,6 +32,8 @@ GRUB_MOD_LICENSE ("GPLv3+");
 
 static const struct grub_arg_option options[] =
   {
+    /* TRANSLATORS: This option is used to override default filename
+       for loading and storing environment.  */
     {"file", 'f', 0, N_("Specify filename."), 0, ARG_TYPE_PATHNAME},
     {0, 0, 0, 0, 0, 0}
   };
index 695ce307a7e74a78b66ee0a02c87274d0fc0abb4..b19bd3e73bef0226c096f3959bbfbe344948e7a6 100644 (file)
@@ -38,6 +38,8 @@ static const struct grub_arg_option options[] =
   {
     {"set",             's', 0,
      N_("Set a variable to return value."), "VAR", ARG_TYPE_STRING},
+    /* TRANSLATORS: It's a driver that is currently in use to access
+       the diven disk.  */
     {"driver",         'd', 0, N_("Determine driver."), 0, 0},
     {"partmap",                'p', 0, N_("Determine partition map type."), 0, 0},
     {"fs",             'f', 0, N_("Determine filesystem type."), 0, 0},
index 35844c5e1d18512848ee1eb2b388d2e60f274766..e6d19e60daae9c4905a6fcc392a099e22ff942ac 100644 (file)
@@ -146,7 +146,11 @@ static grub_extcmd_t cmd;
 \f
 GRUB_MOD_INIT(regexp)
 {
-  cmd = grub_register_extcmd ("regexp", grub_cmd_regexp, 0, N_("REGEXP STRING"),
+  cmd = grub_register_extcmd ("regexp", grub_cmd_regexp, 0,
+                             /* TRANSLATORS: This are two arguments. So it's
+                                two separate units to translate and pay
+                                attention not to reverse them.  */
+                             N_("REGEXP STRING"),
                              N_("Test if REGEXP matches STRING."), options);
 
   /* Setup GRUB script wildcard translator.  */
index b76682d06ad647d74714917374a66b9e3472ab04..8cbba65832b2542aa9935a1d8275ba2fa1373d58 100644 (file)
@@ -46,13 +46,11 @@ GRUB_MOD_INIT(true)
 {
   cmd_true =
     grub_register_command ("true", grub_cmd_true,
-                          /* TRANSLATORS: it's imperative, not
-                             infinitive.  */
+                          /* TRANSLATORS: it's a command description.  */
                           0, N_("Do nothing, successfully."));
   cmd_false =
     grub_register_command ("false", grub_cmd_false,
-                          /* TRANSLATORS: it's imperative, not
-                             infinitive.  */
+                          /* TRANSLATORS: it's a command description.  */
                           0, N_("Do nothing, unsuccessfully."));
 }
 
index 025943157e1cdeafaa51938d35dab3f572d4b1d0..97945edae1d294a23136c11479af16f9107196a9 100644 (file)
@@ -69,6 +69,9 @@ hook (const struct grub_video_mode_info *info)
   if (info->mode_type & GRUB_VIDEO_MODE_TYPE_YUV)
     grub_xputs (_("YUV "));
   if (info->mode_type & GRUB_VIDEO_MODE_TYPE_PLANAR)
+    /* TRANSLATORS: "Planar" is the video memory where you have to write
+       in several different banks "plans" to control the different color
+       components of the same pixel.  */
     grub_xputs (_("Planar "));
   if (info->mode_type & GRUB_VIDEO_MODE_TYPE_HERCULES)
     grub_xputs (_("Hercules "));
index 7b0873948c32ebfd8445f2cdf54323ac0bd426ec..1ac906d90eade409d5d649a1bd3d1f7b3e707769 100644 (file)
@@ -40,6 +40,7 @@ grub_cryptodisk_dev_t grub_cryptodisk_list;
 static const struct grub_arg_option options[] =
   {
     {"uuid", 'u', 0, N_("Mount by UUID."), 0, 0},
+    /* TRANSLATORS: It's still restricted to cryptodisks only.  */
     {"all", 'a', 0, N_("Mount all."), 0, 0},
     {"boot", 'b', 0, N_("Mount all volumes with `boot' flag set."), 0, 0},
     {0, 0, 0, 0, 0, 0}
index e34963aa1e261ff63c986ebdf8a3be7f3aebe7de..5a36d26be5096fe3e3d177ff12f688054da743f9 100644 (file)
@@ -965,7 +965,11 @@ grub_util_ldm_embed (struct grub_disk *disk, unsigned int *nsectors,
       if (lv->size < *nsectors)
        return grub_error (GRUB_ERR_OUT_OF_RANGE,
                           /* TRANSLATORS: it's a partition for embedding,
-                             not a partition embed into something.  */
+                             not a partition embed into something. GRUB
+                             install tools put core.img into a place
+                             usable for bootloaders (called generically
+                             "embedding zone") and this operation is
+                             called "embedding".  */
                           N_("your LDM embedding Partition is too small;"
                              " embedding won't be possible"));
       *nsectors = lv->size;
index afdcf481dcee2bdc90a75a52102019650114f30b..f3b19eff7a7c4d90df6014051ceda53bac6950d8 100644 (file)
@@ -38,6 +38,8 @@ static struct grub_loopback *loopback_list;
 
 static const struct grub_arg_option options[] =
   {
+    /* TRANSLATORS: The disk is simply removed from the list of available ones,
+       not wiped, avoid to scare user.  */
     {"delete", 'd', 0, N_("Delete the specified loopback drive."), 0, 0},
     {0, 0, 0, 0, 0, 0}
   };
@@ -224,6 +226,8 @@ GRUB_MOD_INIT(loopback)
 {
   cmd = grub_register_extcmd ("loopback", grub_cmd_loopback, 0,
                              N_("[-d] DEVICENAME FILE."),
+                             /* TRANSLATORS: The file itself is not destroyed
+                                or transformed into drive.  */
                              N_("Make a virtual drive from a file."), options);
   grub_disk_dev_register (&grub_loopback_dev);
 }
index a5c0d3418003e41391ff1ff1a4bff844dea307d6..44f3cacb7397f9634a5eb7e0c7723cc262d00633 100644 (file)
@@ -434,6 +434,8 @@ luks_recover_key (grub_disk_t source,
          continue;
        }
 
+      /* TRANSLATORS: It's a cryptographic key slot: one element of an array
+        where each element is either empty or holds a key.  */
       grub_printf_ (N_("Slot %d opened\n"), i);
 
       /* Set the master key.  */
index c2aca5afacf9495aa5459d1bf7e80160a213d119..fdb587a4c9d28225039add1f4e70a5a9e0d35ac2 100644 (file)
@@ -236,6 +236,9 @@ get_bootpath (char *nvlist, char **bootpath, char **devid)
 }
 
 static const char *poolstates[] = {
+  /* TRANSLATORS: Here we speak about ZFS pools it's semi-marketing,
+     semi-technical term by Sun/Oracle and should be translated in sync with
+     other ZFS-related software and documentation.  */
   [POOL_STATE_ACTIVE] = N_("Pool state: active"),
   [POOL_STATE_EXPORTED] = N_("Pool state: exported"),
   [POOL_STATE_DESTROYED] = N_("Pool state: destroyed"),
index a3c278ac835f7c16adfc3ebada8a423a58513638..1f55f90a89cf9cfaf3e785258fc698942df2459d 100644 (file)
@@ -284,6 +284,8 @@ grub_disk_open (const char *name)
       disk->partition = grub_partition_probe (disk, p + 1);
       if (! disk->partition)
        {
+         /* TRANSLATORS: It means that the specified partition e.g.
+            hd0,msdos1=/dev/sda1 doesn't exist.  */
          grub_error (GRUB_ERR_UNKNOWN_DEVICE, N_("no such partition"));
          goto fail;
        }
index 1b5655c109bb1f7ce79567b9860306dcc7913570..895edf14934a664df9b49509e6c20300f420fcaf 100644 (file)
@@ -253,6 +253,7 @@ grub_util_get_fd_size (int fd, const char *name, unsigned *log_secsize)
   struct stat st;
 
   if (fstat (fd, &st) < 0)
+    /* TRANSLATORS: "stat" comes from the name of POSIX function.  */
     grub_util_error (_("cannot stat `%s': %s"), name, strerror (errno));
 
 #if defined(__linux__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \
@@ -444,8 +445,8 @@ grub_util_follow_gpart_up (const char *name, grub_disk_addr_t *off_out, char **n
       break;
   if (!class)
     /* TRANSLATORS: geom is the name of (k)FreeBSD device framework.
-       Usually left untranslated.
-     */
+       Usually left untranslated. "part" is the identifier of one of its
+       classes.  */
     grub_util_error (_("couldn't find geom `part' class"));
 
   LIST_FOREACH (geom, &class->lg_geom, lg_geom)