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

* grub-core/commands/gptsync.c: Likewise.
	* grub-core/commands/hashsum.c: Likewise.
	* grub-core/commands/i386/pc/sendkey.c: Likewise.
	* grub-core/commands/legacycfg.c: Likewise.
	* grub-core/io/gzio.c: Likewise.
	* grub-core/net/net.c: Likewise.
	* grub-core/term/gfxterm.c: Likewise.
	* grub-core/term/terminfo.c: Likewise.
	* grub-core/tests/test_blockarg.c: Likewise.
	* grub-core/video/video.c: Likewise.
	* util/grub-install.in: Likewise.
	* util/grub-mkfont.c: Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-06 14:11:10 +01:00
parent b2b149cbbd
commit bb51c6c647
14 changed files with 57 additions and 3 deletions

View File

@ -1,3 +1,19 @@
2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/acpi.c: Add TRANSLATORS comments.
* grub-core/commands/gptsync.c: Likewise.
* grub-core/commands/hashsum.c: Likewise.
* grub-core/commands/i386/pc/sendkey.c: Likewise.
* grub-core/commands/legacycfg.c: Likewise.
* grub-core/io/gzio.c: Likewise.
* grub-core/net/net.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.
* grub-core/term/terminfo.c: Likewise.
* grub-core/tests/test_blockarg.c: Likewise.
* grub-core/video/video.c: Likewise.
* util/grub-install.in: Likewise.
* util/grub-mkfont.c: Likewise.
2012-03-06 Vladimir Serbinenko <phcoder@gmail.com> 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkimage.c (help_filter): Add missing capitalisation. * util/grub-mkimage.c (help_filter): Add missing capitalisation.
@ -5,6 +21,7 @@
2012-03-06 Vladimir Serbinenko <phcoder@gmail.com> 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/search_wrap.c (options): Fix a typo. * grub-core/commands/search_wrap.c (options): Fix a typo.
Reported by: David Prévot.
2012-03-06 Vladimir Serbinenko <phcoder@gmail.com> 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>

View File

@ -54,6 +54,7 @@ static const struct grub_arg_option options[] = {
N_("Set creator field of RSDP, XSDT and RSDT."), 0, ARG_TYPE_STRING}, N_("Set creator field of RSDP, XSDT and RSDT."), 0, ARG_TYPE_STRING},
{"oemtablecreatorrev", 'd', 0, {"oemtablecreatorrev", 'd', 0,
N_("Set creator revision of RSDP, XSDT and RSDT."), 0, ARG_TYPE_INT}, N_("Set creator revision of RSDP, XSDT and RSDT."), 0, ARG_TYPE_INT},
/* TRANSLATORS: "hangs" here is a noun, not a verb. */
{"no-ebda", 'e', 0, N_("Don't update EBDA. May fix failures or hangs on some." {"no-ebda", 'e', 0, N_("Don't update EBDA. May fix failures or hangs on some."
" BIOSes but makes it ineffective with OS not receiving RSDP from GRUB."), " BIOSes but makes it ineffective with OS not receiving RSDP from GRUB."),
0, ARG_TYPE_NONE}, 0, ARG_TYPE_NONE},

View File

@ -245,6 +245,8 @@ GRUB_MOD_INIT(gptsync)
(void) mod; /* To stop warning. */ (void) mod; /* To stop warning. */
cmd = grub_register_command ("gptsync", grub_cmd_gptsync, cmd = grub_register_command ("gptsync", grub_cmd_gptsync,
N_("DEVICE [PARTITION[+/-[TYPE]]] ..."), N_("DEVICE [PARTITION[+/-[TYPE]]] ..."),
/* TRANSLATORS: MBR type is one-byte partition
type id. */
N_("Fill hybrid MBR of GPT drive DEVICE. " N_("Fill hybrid MBR of GPT drive DEVICE. "
"Specified partitions will be a part " "Specified partitions will be a part "
"of hybrid MBR. Up to 3 partitions are " "of hybrid MBR. Up to 3 partitions are "

View File

@ -260,6 +260,9 @@ GRUB_MOD_INIT(hashsum)
cmd = grub_register_extcmd ("hashsum", grub_cmd_hashsum, 0, cmd = grub_register_extcmd ("hashsum", grub_cmd_hashsum, 0,
N_("-h HASH [-c FILE [-p PREFIX]] " N_("-h HASH [-c FILE [-p PREFIX]] "
"[FILE1 [FILE2 ...]]"), "[FILE1 [FILE2 ...]]"),
/* TRANSLATORS: "hash checksum" is just to
be a bit more precise, you can treat it as
just "hash". */
N_("Compute or check hash checksum."), N_("Compute or check hash checksum."),
options); options);
cmd_md5 = grub_register_extcmd ("md5sum", grub_cmd_hashsum, 0, cmd_md5 = grub_register_extcmd ("md5sum", grub_cmd_hashsum, 0,

View File

@ -371,6 +371,8 @@ GRUB_MOD_INIT (sendkey)
{ {
cmd = grub_register_extcmd ("sendkey", grub_cmd_sendkey, 0, cmd = grub_register_extcmd ("sendkey", grub_cmd_sendkey, 0,
N_("[KEYSTROKE1] [KEYSTROKE2] ..."), N_("[KEYSTROKE1] [KEYSTROKE2] ..."),
/* TRANSLATORS: It can emulate multiple
keypresses. */
N_("Emulate a keystroke"), options); N_("Emulate a keystroke"), options);
preboot_hook preboot_hook

View File

@ -770,6 +770,8 @@ GRUB_MOD_INIT(legacycfg)
= grub_register_command ("legacy_source", = grub_register_command ("legacy_source",
grub_cmd_legacy_source, grub_cmd_legacy_source,
N_("FILE"), N_("FILE"),
/* TRANSLATORS: "legacy config" means
"config as used by grub-legacy". */
N_("Parse legacy config in same context")); N_("Parse legacy config in same context"));
cmd_configfile cmd_configfile
= grub_register_command ("legacy_configfile", = grub_register_command ("legacy_configfile",

View File

@ -1174,6 +1174,8 @@ test_zlib_header (grub_gzio_t gzio)
/* Check that compression method is DEFLATE. */ /* Check that compression method is DEFLATE. */
if ((cmf & 0xf) != DEFLATED) if ((cmf & 0xf) != DEFLATED)
{ {
/* TRANSLATORS: It's about given file having some strange format, not
complete lack of gzip support. */
grub_error (GRUB_ERR_BAD_COMPRESSED_DATA, N_("unsupported gzip format")); grub_error (GRUB_ERR_BAD_COMPRESSED_DATA, N_("unsupported gzip format"));
return 0; return 0;
} }

View File

@ -1494,6 +1494,8 @@ static grub_command_t cmd_lsaddr, cmd_slaac;
GRUB_MOD_INIT(net) GRUB_MOD_INIT(net)
{ {
cmd_addaddr = grub_register_command ("net_add_addr", grub_cmd_addaddr, cmd_addaddr = grub_register_command ("net_add_addr", grub_cmd_addaddr,
/* TRANSLATORS: HWADDRESS stands for
"hardware address". */
N_("SHORTNAME CARD ADDRESS [HWADDRESS]"), N_("SHORTNAME CARD ADDRESS [HWADDRESS]"),
N_("Add a network address.")); N_("Add a network address."));
cmd_slaac = grub_register_command ("net_ipv6_autoconf", cmd_slaac = grub_register_command ("net_ipv6_autoconf",
@ -1505,6 +1507,7 @@ GRUB_MOD_INIT(net)
N_("SHORTNAME"), N_("SHORTNAME"),
N_("Delete a network address.")); N_("Delete a network address."));
cmd_addroute = grub_register_command ("net_add_route", grub_cmd_addroute, cmd_addroute = grub_register_command ("net_add_route", grub_cmd_addroute,
/* TRANSLATORS: "gw" is a keyword. */
N_("SHORTNAME NET [INTERFACE| gw GATEWAY]"), N_("SHORTNAME NET [INTERFACE| gw GATEWAY]"),
N_("Add a network route.")); N_("Add a network route."));
cmd_delroute = grub_register_command ("net_del_route", grub_cmd_delroute, cmd_delroute = grub_register_command ("net_del_route", grub_cmd_delroute,

View File

@ -1102,7 +1102,7 @@ static const struct grub_arg_option background_image_cmd_options[] =
{ {
{"mode", 'm', 0, N_("Background image mode."), {"mode", 'm', 0, N_("Background image mode."),
/* TRANSLATORS: This refers to background image mode (stretched or /* TRANSLATORS: This refers to background image mode (stretched or
in left-top conrner). Note that GRUB will accept only original in left-top corner). Note that GRUB will accept only original
keywords stretch and normal, not the translated ones. keywords stretch and normal, not the translated ones.
So please put both in translation So please put both in translation
e.g. stretch(=%STRETCH%)|normal(=%NORMAL). Since many people e.g. stretch(=%STRETCH%)|normal(=%NORMAL). Since many people

View File

@ -629,6 +629,8 @@ static const struct grub_arg_option options[] =
{"visual-utf8", 'v', 0, N_("Terminal is visually-ordered UTF-8."), 0, {"visual-utf8", 'v', 0, N_("Terminal is visually-ordered UTF-8."), 0,
ARG_TYPE_NONE}, ARG_TYPE_NONE},
{"geometry", 'g', 0, N_("Terminal has specified geometry."), {"geometry", 'g', 0, N_("Terminal has specified geometry."),
/* TRANSLATORS: "x" has to be entered in, like an identifier, so please don't
use better Unicode codepoints. */
N_("WIDTHxHEIGHT."), ARG_TYPE_STRING}, N_("WIDTHxHEIGHT."), ARG_TYPE_STRING},
{0, 0, 0, 0, 0, 0} {0, 0, 0, 0, 0, 0}
}; };

View File

@ -44,6 +44,8 @@ GRUB_MOD_INIT(test_blockarg)
cmd = grub_register_extcmd ("test_blockarg", test_blockarg, cmd = grub_register_extcmd ("test_blockarg", test_blockarg,
GRUB_COMMAND_FLAG_BLOCKS, GRUB_COMMAND_FLAG_BLOCKS,
N_("BLOCK"), N_("BLOCK"),
/* TRANSLATORS: this is the BLOCK-argument, not
environment block. */
N_("Print and execute block argument."), 0); N_("Print and execute block argument."), 0);
} }

View File

@ -540,6 +540,9 @@ grub_video_set_mode (const char *modestring,
{ {
grub_free (modevar); grub_free (modevar);
/* TRANSLATORS: This doesn't imply that there is no available video
mode at all. All modes may have been filtered out by some criteria.
*/
return grub_error (GRUB_ERR_BAD_ARGUMENT, return grub_error (GRUB_ERR_BAD_ARGUMENT,
N_("no suitable video mode found")); N_("no suitable video mode found"));
} }

View File

@ -101,6 +101,8 @@ usage () {
printf " --grub-mkimage=%-9s%s\n" "$(gettext "FILE")" "$(gettext "use FILE as grub-mkimage")" printf " --grub-mkimage=%-9s%s\n" "$(gettext "FILE")" "$(gettext "use FILE as grub-mkimage")"
printf " --grub-mkrelpath=%-7s%s\n" "$(gettext "FILE")" "$(gettext "use FILE as grub-mkrelpath")" printf " --grub-mkrelpath=%-7s%s\n" "$(gettext "FILE")" "$(gettext "use FILE as grub-mkrelpath")"
printf " --grub-probe=%-11s%s\n" "$(gettext "FILE")" "$(gettext "use FILE as grub-probe")" printf " --grub-probe=%-11s%s\n" "$(gettext "FILE")" "$(gettext "use FILE as grub-probe")"
# TRANSLATORS: "may break" doesn't just mean that option wouldn't have any
# effect but that it will make the resulting install unbootable from HDD.
printf " --allow-floppy %s\n" "$(gettext "make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes.")" printf " --allow-floppy %s\n" "$(gettext "make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes.")"
printf " --recheck %s\n" "$(gettext "delete device map if it already exists")" printf " --recheck %s\n" "$(gettext "delete device map if it already exists")"
printf " --force %s\n" "$(gettext "install even if problems are detected")" printf " --force %s\n" "$(gettext "install even if problems are detected")"

View File

@ -142,6 +142,11 @@ add_glyph (struct grub_font_info *font_info, FT_UInt glyph_idx, FT_Face face,
printf (_("Freetype Error %d loading glyph 0x%x for U+0x%x%s"), printf (_("Freetype Error %d loading glyph 0x%x for U+0x%x%s"),
err, glyph_idx, char_code & GRUB_FONT_CODE_CHAR_MASK, err, glyph_idx, char_code & GRUB_FONT_CODE_CHAR_MASK,
char_code & GRUB_FONT_CODE_RIGHT_JOINED char_code & GRUB_FONT_CODE_RIGHT_JOINED
/* TRANSLATORS: These qualifiers are used for cursive typography,
mainly Arabic. Note that the terms refer to the visual position
and not logical order and if used in left-to-right script then
leftmost is initial but with right-to-left script like Arabic
rightmost is the initial. */
? ((char_code & GRUB_FONT_CODE_LEFT_JOINED) ? _(" (medial)"): ? ((char_code & GRUB_FONT_CODE_LEFT_JOINED) ? _(" (medial)"):
_(" (leftmost)")) _(" (leftmost)"))
: ((char_code & GRUB_FONT_CODE_LEFT_JOINED) ? _(" (rightmost)"): : ((char_code & GRUB_FONT_CODE_LEFT_JOINED) ? _(" (rightmost)"):
@ -626,6 +631,7 @@ add_font (struct grub_font_info *font_info, FT_Face face, int nocut)
for (j = 0; j < 4; j++) for (j = 0; j < 4; j++)
if (!grub_isgraph (str[j])) if (!grub_isgraph (str[j]))
str[j] = '?'; str[j] = '?';
/* TRANSLATORS: It's gsub feature, not gsub font. */
printf (_("Unknown gsub font feature 0x%x (%s)\n"), printf (_("Unknown gsub font feature 0x%x (%s)\n"),
feattag, str); feattag, str);
} }
@ -965,6 +971,7 @@ write_font_pf2 (struct grub_font_info *font_info, char *output_file)
static struct argp_option options[] = { static struct argp_option options[] = {
{"output", 'o', N_("FILE"), 0, N_("save output in FILE [required]"), 0}, {"output", 'o', N_("FILE"), 0, N_("save output in FILE [required]"), 0},
/* TRANSLATORS: bitmaps are images like e.g. in JPEG. */
{"ascii-bitmaps", 0x102, 0, 0, N_("save only the ASCII bitmaps"), 0}, {"ascii-bitmaps", 0x102, 0, 0, N_("save only the ASCII bitmaps"), 0},
{"width-spec", 0x103, 0, 0, {"width-spec", 0x103, 0, 0,
/* TRANSLATORS: this refers to creating a file containing the width of /* TRANSLATORS: this refers to creating a file containing the width of
@ -975,8 +982,13 @@ static struct argp_option options[] = {
This option is used to chose among them, the first face being '0'. This option is used to chose among them, the first face being '0'.
Rarely used. */ Rarely used. */
N_("set face index"), 0}, N_("set face index"), 0},
{"range", 'r', N_("FROM-TO[,FROM-TO]"), 0, N_("set font range"), 0}, {"range", 'r', N_("FROM-TO[,FROM-TO]"), 0,
{"name", 'n', N_("NAME"), 0, N_("set font family name"), 0}, /* TRANSLATORS: It refers to the range of characters in font. */
N_("set font range"), 0},
{"name", 'n', N_("NAME"), 0,
/* TRANSLATORS: "family name" for font is just a generic name without suffix
like "Bold". */
N_("set font family name"), 0},
{"size", 's', N_("SIZE"), 0, N_("set font size"), 0}, {"size", 's', N_("SIZE"), 0, N_("set font size"), 0},
{"desc", 'd', N_("NUM"), 0, N_("set font descent"), 0}, {"desc", 'd', N_("NUM"), 0, N_("set font descent"), 0},
{"asce", 'c', N_("NUM"), 0, N_("set font ascent"), 0}, {"asce", 'c', N_("NUM"), 0, N_("set font ascent"), 0},
@ -1056,6 +1068,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
a = strtoul (p, &p, 0); a = strtoul (p, &p, 0);
if (*p != '-') if (*p != '-')
/* TRANSLATORS: It refers to the range of characters in font. */
grub_util_error ("%s", _("invalid font range")); grub_util_error ("%s", _("invalid font range"));
b = strtoul (p + 1, &p, 0); b = strtoul (p + 1, &p, 0);
if ((arguments->font_info.num_range if ((arguments->font_info.num_range