* grub-core/commands/videoinfo.c: Add TRANSLATORS comments.

* grub-core/commands/xnu_uuid.c: Likewise.
	* grub-core/loader/efi/appleloader.c: Likewise.
	* grub-core/script/execute.c: Likewise.
	* grub-core/script/main.c: Likewise.
	* util/grub-mkfont.c: Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-10 13:19:46 +01:00
parent 1acc5b1f3d
commit e8e0566b0c
7 changed files with 31 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
* grub-core/commands/xnu_uuid.c: Likewise.
* grub-core/loader/efi/appleloader.c: Likewise.
* grub-core/script/execute.c: Likewise.
* grub-core/script/main.c: Likewise.
* util/grub-mkfont.c: Likewise.
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkfont.c (options): Use more appropriate "select" that

View file

@ -55,6 +55,8 @@ hook (const struct grub_video_mode_info *info)
grub_xputs (_("Text-only "));
/* Show mask and position details for direct color modes. */
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_RGB)
/* TRANSLATORS: "Direct color" is a mode when the color components
are written dirrectly into memory. */
grub_printf_ (N_("Direct color, mask: %d/%d/%d/%d pos: %d/%d/%d/%d"),
info->red_mask_size,
info->green_mask_size,
@ -65,6 +67,8 @@ hook (const struct grub_video_mode_info *info)
info->blue_field_pos,
info->reserved_field_pos);
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_INDEX_COLOR)
/* TRANSLATORS: In "packed pixel" mode you write the index of the color
in the palette. Synonyms include "paletted color". */
grub_xputs (_("Packed pixel "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_YUV)
grub_xputs (_("YUV "));

View file

@ -100,6 +100,8 @@ static grub_command_t cmd;
GRUB_MOD_INIT (xnu_uuid)
{
cmd = grub_register_command ("xnu_uuid", grub_cmd_xnu_uuid,
/* TRANSLATORS: GRUBUUID stands for "filesystem
UUID as used in GRUB". */
N_("[-l] GRUBUUID [VARNAME]"),
N_("Transform 64-bit UUID to format "
"suitable for XNU. If -l is given keep "

View file

@ -220,7 +220,11 @@ static grub_command_t cmd;
GRUB_MOD_INIT(appleloader)
{
cmd = grub_register_command ("appleloader", grub_cmd_appleloader,
N_("[OPTS]"), N_("Boot BIOS-based system."));
N_("[OPTS]"),
/* TRANSLATORS: This command is used on EFI to
switch to BIOS mode and boot the OS requiring
BIOS. */
N_("Boot BIOS-based system."));
my_mod = mod;
}

View file

@ -87,8 +87,9 @@ 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. */
/* TRANSLATORS: 0 is a quantifier. "break" (similar to bash)
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"));
}

View file

@ -64,6 +64,11 @@ grub_script_init (void)
N_("Set positional parameters."));
cmd_return = grub_register_command ("return", grub_script_return,
N_("[NUM]"),
/* TRANSLATORS: It's a command description
and "Return" is a verb, not a noun. The
command in question is "return" and
has exactly the same semanics as bash
equivalent. */
N_("Return from a function."));
}

View file

@ -487,6 +487,9 @@ process_cursive (struct gsub_feature *feature,
struct gsub_lookup *lookup;
if (lookup_index >= grub_be_to_cpu16 (lookups->count))
{
/* TRANSLATORS: "lookup" is taken directly from font specifications
which are formulated as "Under condition X replace LOOKUP with
SUBSTITUITION". "*/
printf (_("Out of range lookup: %d\n"), lookup_index);
continue;
}