]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/net/http.c: Add TRANSLATORS comments.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 5 Mar 2012 15:42:26 +0000 (16:42 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 5 Mar 2012 15:42:26 +0000 (16:42 +0100)
* grub-core/normal/cmdline.c: Likewise.
* grub-core/normal/misc.c: Likewise.
* grub-core/partmap/msdos.c: Likewise.
* grub-core/parttool/msdospart.c: Likewise.
* grub-core/script/execute.c: Likewise.
* grub-core/script/main.c: Likewise.
* grub-core/term/terminfo.c: Likewise.
* grub-core/video/bitmap.c: Likewise.
* util/grub-install.in: Likewise.
* util/grub-mkimage.c: Likewise.
* util/grub-mklayout.c: Likewise.
* util/grub-setup.c: Likewise.

14 files changed:
ChangeLog
grub-core/net/http.c
grub-core/normal/cmdline.c
grub-core/normal/misc.c
grub-core/partmap/msdos.c
grub-core/parttool/msdospart.c
grub-core/script/execute.c
grub-core/script/main.c
grub-core/term/terminfo.c
grub-core/video/bitmap.c
util/grub-install.in
util/grub-mkimage.c
util/grub-mklayout.c
util/grub-setup.c

index 33fc583f60e83b6a57829643e7a143b88fadc959..2b102cf48e298ab083723089cce349c0663cbe55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/net/http.c: Add TRANSLATORS comments.
+       * grub-core/normal/cmdline.c: Likewise.
+       * grub-core/normal/misc.c: Likewise.
+       * grub-core/partmap/msdos.c: Likewise.
+       * grub-core/parttool/msdospart.c: Likewise.
+       * grub-core/script/execute.c: Likewise.
+       * grub-core/script/main.c: Likewise.
+       * grub-core/term/terminfo.c: Likewise.
+       * grub-core/video/bitmap.c: Likewise.
+       * util/grub-install.in: Likewise.
+       * util/grub-mkimage.c: Likewise.
+       * util/grub-mklayout.c: Likewise.
+       * util/grub-setup.c: Likewise.
+
 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
index 49edeb1d945688336b8476cfd67c4d74600ef6c1..48b2ccf341e7cf378a41180ad1b3344689a94d89 100644 (file)
@@ -116,6 +116,8 @@ parse_line (grub_file_t file, http_data_t data, char *ptr, grub_size_t len)
          return GRUB_ERR_NONE;
        default:
          data->err = GRUB_ERR_NET_UNKNOWN_ERROR;
+         /* TRANSLATORS: GRUB HTTP code is pretty young. So even perfectly
+            valid answers like 403 will trigger this very generic message.  */
          data->errmsg = grub_xasprintf (_("unsupported HTTP error %d: %s"),
                                         code, ptr);
          return GRUB_ERR_NONE;
index 8b255e6d7ede2db3917484b72747d0ec7e85db82..0e8a1adbf45f23bbf33cc6947b6c508807fd2dc7 100644 (file)
@@ -186,6 +186,9 @@ print_completion (const char *item, grub_completion_type_t type, int count)
          grub_puts_ (N_("Possible arguments are:"));
          break;
        default:
+         /* TRANSLATORS: this message is used if none of above matches.
+            This shouldn't happen but please use the general term for
+            "thing" or "object".  */
          grub_puts_ (N_("Possible things are:"));
          break;
        }
index 8dc6d359ef2641cbdcba2f2c4d1ec0bf4fdfbcdf..43ffd9ccf0a580c4c59dc79d7d51a89c40f9ac01 100644 (file)
@@ -86,6 +86,8 @@ grub_normal_print_device_info (const char *name)
                {
                  grub_unixtime2datetime (tm, &datetime);
                  grub_xputs (" ");
+                 /* TRANSLATORS: Arguments are year, month, day, hour, minute,
+                    second, day of the week (translated).  */
                  grub_printf_ (N_("- Last modification time %d-%02d-%02d "
                               "%02d:%02d:%02d %s"),
                               datetime.year, datetime.month, datetime.day,
index 99fb85258360dd1df787d34e6c7e998ebbcb4f36..1cef2106db39fc5313460a4c582ea08ac673a774 100644 (file)
@@ -42,6 +42,9 @@ struct embed_signature
 };
 
 const char message_warn[][200] = {
+  /* TRANSLATORS: MBR gap and boot track is the same thing and is the space
+     between MBR and first partitition. If your language translates well only
+     "boot track", you can just use it everywhere.  */
   [TYPE_RAID] = N_("Sector %llu is already in use by raid controller `%s';"
                   " avoiding it.  "
                   "Please ask the manufacturer not to store data in MBR gap"),
index 3ae584829cf70d10ffbe454dcf1b7806f85aae4e..dcbf74e3b4206504de949689ed9502f59215fd19 100644 (file)
@@ -132,6 +132,8 @@ static grub_err_t grub_pcpart_type (const grub_device_t dev,
     }
 
   mbr.entries[index].type = type;
+  /* TRANSLATORS: In this case we're actually writing to the disk and actively
+     modifying partition type rather than just defining it.  */
   grub_printf_ (N_("Setting partition type to 0x%x\n"), type);
 
    /* Write the parttable.  */
index 9adc9da3b2edf0e94ecbff5008ac1addaecf54ad..a3ad3242a2369efc1ff8c4a4c38065b14b98956a 100644 (file)
@@ -87,6 +87,8 @@ grub_script_break (grub_command_t cmd, int argc, char *argv[])
       if (*p != '\0')
        return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("unrecognized number"));
       if (count == 0)
+       /* TRANSLATORS: 0 is a quantifier. Break can be used e.g. to break
+          3 loops at once. But asking it to break 0 loops makes no sense. */
        return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("can't break 0 loops"));
     }
 
index 91ab55b6a06576b924b5feffaba6a2f017742b04..faf196af48a726f01196a7e4f2772d2620691e91 100644 (file)
@@ -56,6 +56,8 @@ grub_script_init (void)
                                        N_("[NUM]"), N_("Continue loops"));
   cmd_shift = grub_register_command ("shift", grub_script_shift,
                                     N_("[NUM]"),
+                                    /* TRANSLATORS: Positional arguments are
+                                       arguments $0, $1, $2, ...  */
                                     N_("Shift positional parameters."));
   cmd_setparams = grub_register_command ("setparams", grub_script_setparams,
                                         N_("[VALUE]..."),
index b2c721c18151b25e370b5010e7d621eea5519c8e..dd9541d13384c4f5a9bc99453cfe36b7e88c35f5 100644 (file)
@@ -600,6 +600,10 @@ print_terminfo (void)
     [GRUB_TERM_CODE_TYPE_UTF8_LOGICAL >> GRUB_TERM_CODE_TYPE_SHIFT]
     = _("UTF-8"),
     [GRUB_TERM_CODE_TYPE_UTF8_VISUAL >> GRUB_TERM_CODE_TYPE_SHIFT]
+    /* TRANSLATORS: visually ordered UTF-8 is a non-compliant encoding
+       based on UTF-8 with right-to-left languages written in reverse.
+       Used on some terminals. Normal UTF-8 is refered as
+       "logically-ordered UTF-8" by opposition.  */
     = _("visually-ordered UTF-8"),
     [GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS >> GRUB_TERM_CODE_TYPE_SHIFT]
     = "Glyph descriptors",
index 966f4cf6f39578e3a184d9511e465939feadf050..bb41d10cbdeed49311dfcd461fad0a298fc9895e 100644 (file)
@@ -204,6 +204,8 @@ grub_video_bitmap_load (struct grub_video_bitmap **bitmap,
     }
 
   return grub_error (GRUB_ERR_BAD_FILE_TYPE,
+                    /* TRANSLATORS: We're speaking about bitmap images like
+                       JPEG or PNG.  */
                     N_("bitmap file `%s' is of"
                        " unsupported format"), filename);
 }
index e9d5c360981eea3e223fa9ca104905d89678bf83..44c68e74385a43d572bd78edc4c0b6079b911360 100644 (file)
@@ -81,6 +81,8 @@ disk_module=unspecified
 # Usage: usage
 # Print the usage.
 usage () {
+    # TRANSLATORS: INSTALL_DEVICE isn't an identifier and is the DEVICE you
+    # install to.
     gettext_printf "Usage: %s [OPTION] [INSTALL_DEVICE]" "$self"
     echo
     gettext "Install GRUB on your drive." ; echo
@@ -724,6 +726,8 @@ elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ]
        dev="`echo $install_device | sed -e 's/\/dev\///' -e 's/[0-9]\+//'`"
        partno="`echo $install_device | sed -e 's/.*[^0-9]\([0-9]\+\)$/\1/'`"
        ofpath="`$ofpathname $dev`" || {
+           # TRANSLATORS: "device tree path" is the name of the device
+            # for IEEE1275
            gettext_printf "Couldn't find IEEE1275 device tree path for %s.\nYou will have to set \`boot-device' variable manually.\n" "$dev" 1>&2
            exit 1
        }
index 72b8d047d5d16488357b4f14f3bd4aa4e868f051..ef34216282fc0d153fd397793da5ee27593fbb26 100644 (file)
@@ -1645,8 +1645,10 @@ static struct argp_option options[] = {
    N_("use images and modules under DIR [default=%s/<platform>]"), 0},
   {"prefix",  'p', N_("DIR"), 0, N_("set prefix directory [default=%s]"), 0},
   {"memdisk",  'm', N_("FILE"), 0,
-   /* TRANSLATORS: memdisk here isn't an identifier, it can be translated.  */
+   /* TRANSLATORS: "memdisk" here isn't an identifier, it can be translated.
+    "embed" is a verb (command description).  "*/
    N_("embed FILE as a memdisk image"), 0},
+   /* TRANSLATORS: "embed" is a verb (command description).  "*/
   {"config",   'c', N_("FILE"), 0, N_("embed FILE as an early config"), 0},
   /* TRANSLATORS: NOTE is a name of segment.  */
   {"note",   'n', 0, 0, N_("add NOTE segment for CHRP IEEE1275"), 0},
index 87bfd3c628e7375ee1fc10ea718c82832f8af6b3..3165fd3860f6fabe1def8279b0158abb03cf1584 100644 (file)
@@ -446,6 +446,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
 
 static struct argp argp = {
   options, argp_parser, N_("[OPTIONS]"),
+  /* TRANSLATORS: "one" is a shortcut for "keyboard layout".  */
   N_("Generate GRUB keyboard layout from Linux console one."),
   NULL, NULL, NULL
 };
index c2833c4a2fde2125bdd5fef34a9ad0a5f06fce87..8e537700bee792af7f1db0bebda54ff8a88ee048 100644 (file)
@@ -588,6 +588,7 @@ unable_to_embed:
                          "setup by using blocklists.  However, blocklists are UNRELIABLE and "
                          "their use is discouraged."));
   if (! force)
+    /* TRANSLATORS: Here GRUB refuses to continue with blocklist install.  */
     grub_util_error ("%s", _("will not proceed with blocklists"));
 
   /* The core image must be put on a filesystem unfortunately.  */
@@ -952,6 +953,8 @@ static struct argp_option options[] = {
    N_("do not probe for filesystems in DEVICE"), 0},
   {"verbose",     'v', 0,      0, N_("print verbose messages."), 0},
   {"allow-floppy", 'a', 0,      0,
+   /* TRANSLATORS: The potential breakage isn't limited to floppies but it's
+      likely to make the install unbootable from HDD.  */
    N_("make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes."), 0},
 
   { 0, 0, 0, 0, 0, 0 }