Clarify several translatable messages.

This commit is contained in:
Vladimir Serbinenko 2013-12-21 01:41:16 +01:00
parent c00c34efe1
commit bfdfeb2508
22 changed files with 60 additions and 41 deletions

View file

@ -1,3 +1,8 @@
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
2013-12-21 Colin Watson <cjwatson@ubuntu.com>
Clarify several translatable messages.
2013-12-20 Colin Watson <cjwatson@ubuntu.com> 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
Be more verbose about some configure failures. Be more verbose about some configure failures.

View file

@ -36,12 +36,12 @@ GRUB_MOD_LICENSE ("GPLv3+");
static const struct grub_arg_option options[] = { static const struct grub_arg_option options[] = {
{"is-i386-xen-pae-domu", 0, 0, {"is-i386-xen-pae-domu", 0, 0,
N_("Check if FILE can be booted as i386 PAE xen unprivilegied guest"), N_("Check if FILE can be booted as i386 PAE xen unprivileged guest kernel"),
0, 0}, 0, 0},
{"is-x86_64-xen-domu", 0, 0, {"is-x86_64-xen-domu", 0, 0,
N_("Check if FILE can be booted as x86_64 xen unprivilegied guest"), 0, 0}, N_("Check if FILE can be booted as x86_64 xen unprivileged guest kernel"), 0, 0},
{"is-x86-xen-dom0", 0, 0, {"is-x86-xen-dom0", 0, 0,
N_("Check if FILE can be used as xen x86 privilegied guest kernel"), 0, 0}, N_("Check if FILE can be used as xen x86 privileged guest kernel"), 0, 0},
{"is-x86-multiboot", 0, 0, {"is-x86-multiboot", 0, 0,
N_("Check if FILE can be used as x86 multiboot kernel"), 0, 0}, N_("Check if FILE can be used as x86 multiboot kernel"), 0, 0},
{"is-x86-multiboot2", 0, 0, {"is-x86-multiboot2", 0, 0,

View file

@ -55,7 +55,7 @@ GRUB_MOD_INIT(cmosdump)
{ {
cmd = grub_register_command ("cmosdump", grub_cmd_cmosdump, cmd = grub_register_command ("cmosdump", grub_cmd_cmosdump,
0, 0,
N_("Dump CMOS contents.")); N_("Show raw dump of the CMOS contents."));
} }
GRUB_MOD_FINI(cmosdump) GRUB_MOD_FINI(cmosdump)

View file

@ -109,9 +109,10 @@ GRUB_MOD_INIT(cmostest)
N_("Test bit at BYTE:BIT in CMOS.")); N_("Test bit at BYTE:BIT in CMOS."));
cmd_clean = grub_register_command ("cmosclean", grub_cmd_cmosclean, cmd_clean = grub_register_command ("cmosclean", grub_cmd_cmosclean,
N_("BYTE:BIT"), N_("BYTE:BIT"),
N_("Clean bit at BYTE:BIT in CMOS.")); N_("Clear bit at BYTE:BIT in CMOS."));
cmd_set = grub_register_command ("cmosset", grub_cmd_cmosset, cmd_set = grub_register_command ("cmosset", grub_cmd_cmosset,
N_("BYTE:BIT"), N_("BYTE:BIT"),
/* TRANSLATORS: A bit may be either set (1) or clear (0). */
N_("Set bit at BYTE:BIT in CMOS.")); N_("Set bit at BYTE:BIT in CMOS."));
} }

View file

@ -455,7 +455,7 @@ GRUB_MOD_INIT(loadenv)
{ {
cmd_load = cmd_load =
grub_register_extcmd ("load_env", grub_cmd_load_env, 0, grub_register_extcmd ("load_env", grub_cmd_load_env, 0,
N_("[-f FILE] [-s|--skip-sig] [whitelisted_variable_name] [...]"), N_("[-f FILE] [-s|--skip-sig] [variable_name_to_whitelist] [...]"),
N_("Load variables from environment block file."), N_("Load variables from environment block file."),
options); options);
cmd_list = cmd_list =

View file

@ -166,7 +166,7 @@ GRUB_MOD_INIT(pcidump)
{ {
cmd = grub_register_extcmd ("pcidump", grub_cmd_pcidump, 0, cmd = grub_register_extcmd ("pcidump", grub_cmd_pcidump, 0,
N_("[-s POSITION] [-d DEVICE]"), N_("[-s POSITION] [-d DEVICE]"),
N_("Dump PCI configuration space."), options); N_("Show raw dump of the PCI configuration space."), options);
} }
GRUB_MOD_FINI(pcidump) GRUB_MOD_FINI(pcidump)

View file

@ -47,14 +47,14 @@ syslinux_file_getline (char **line, int cont __attribute__ ((unused)),
static const struct grub_arg_option options[] = static const struct grub_arg_option options[] =
{ {
{"root", 'r', 0, {"root", 'r', 0,
N_("root directory of the syslinux disk (default /)."), N_("root directory of the syslinux disk [default=/]."),
N_("DIR"), ARG_TYPE_STRING}, N_("DIR"), ARG_TYPE_STRING},
{"cwd", 'c', 0, {"cwd", 'c', 0,
N_("home directory of the syslinux config (default directory of configfile)."), N_("current directory of the syslinux [default is parent directory of input file]."),
N_("DIR"), ARG_TYPE_STRING}, N_("DIR"), ARG_TYPE_STRING},
{"isolinux", 'i', 0, N_("assume isolinux."), 0, 0}, {"isolinux", 'i', 0, N_("assume input is an isolinux configuration file."), 0, 0},
{"pxelinux", 'p', 0, N_("assume pxelinux."), 0, 0}, {"pxelinux", 'p', 0, N_("assume input is a pxelinux configuration file."), 0, 0},
{"syslinux", 's', 0, N_("assume syslinux."), 0, 0}, {"syslinux", 's', 0, N_("assume input is a syslinux configuration file."), 0, 0},
{0, 0, 0, 0, 0, 0} {0, 0, 0, 0, 0, 0}
}; };
@ -183,25 +183,25 @@ GRUB_MOD_INIT(syslinuxcfg)
N_("FILE"), N_("FILE"),
/* TRANSLATORS: "syslinux config" means /* TRANSLATORS: "syslinux config" means
"config as used by syslinux". */ "config as used by syslinux". */
N_("Parse syslinux config in same context"), N_("Execute syslinux config in same context"),
options); options);
cmd_configfile cmd_configfile
= grub_register_extcmd ("syslinux_configfile", = grub_register_extcmd ("syslinux_configfile",
grub_cmd_syslinux_source, 0, grub_cmd_syslinux_source, 0,
N_("FILE"), N_("FILE"),
N_("Parse syslinux config in new context"), N_("Execute syslinux config in new context"),
options); options);
cmd_source_extract cmd_source_extract
= grub_register_extcmd ("extract_syslinux_entries_source", = grub_register_extcmd ("extract_syslinux_entries_source",
grub_cmd_syslinux_source, 0, grub_cmd_syslinux_source, 0,
N_("FILE"), N_("FILE"),
N_("Parse syslinux config in same context taking only menu entries"), N_("Execute syslinux config in same context taking only menu entries"),
options); options);
cmd_configfile_extract cmd_configfile_extract
= grub_register_extcmd ("extract_syslinux_entries_configfile", = grub_register_extcmd ("extract_syslinux_entries_configfile",
grub_cmd_syslinux_source, 0, grub_cmd_syslinux_source, 0,
N_("FILE"), N_("FILE"),
N_("Parse syslinux config in new context taking only menu entries"), N_("Execute syslinux config in new context taking only menu entries"),
options); options);
} }

View file

@ -41,7 +41,7 @@ enum
static const struct grub_arg_option options[] = static const struct grub_arg_option options[] =
{ {
{"skip-sig", 's', 0, {"skip-sig", 's', 0,
N_("Skip signature-checking of the signature file."), 0, ARG_TYPE_NONE}, N_("Skip signature-checking of the public key file."), 0, ARG_TYPE_NONE},
{0, 0, 0, 0, 0, 0} {0, 0, 0, 0, 0, 0}
}; };
@ -970,7 +970,7 @@ GRUB_MOD_INIT(verify)
options); options);
cmd_list = grub_register_command ("list_trusted", grub_cmd_list, cmd_list = grub_register_command ("list_trusted", grub_cmd_list,
0, 0,
N_("List trusted keys.")); N_("Show the list of trusted keys."));
cmd_distrust = grub_register_command ("distrust", grub_cmd_distrust, cmd_distrust = grub_register_command ("distrust", grub_cmd_distrust,
N_("PUBKEY_ID"), N_("PUBKEY_ID"),
N_("Remove KEYID from trusted keys.")); N_("Remove KEYID from trusted keys."));

View file

@ -132,7 +132,7 @@ linux_boot (void)
if (!fdt_addr && machine_type == ARM_FDT_MACHINE_TYPE) if (!fdt_addr && machine_type == ARM_FDT_MACHINE_TYPE)
return grub_error (GRUB_ERR_FILE_NOT_FOUND, return grub_error (GRUB_ERR_FILE_NOT_FOUND,
N_("device tree must be supplied")); N_("device tree must be supplied (see `devicetree' command)"));
grub_arch_sync_caches ((void *) linux_addr, linux_size); grub_arch_sync_caches ((void *) linux_addr, linux_size);
@ -288,7 +288,7 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
if (!initrd_start) if (!initrd_start)
{ {
grub_error (GRUB_ERR_OUT_OF_MEMORY, N_("memory allocation failed")); grub_error (GRUB_ERR_OUT_OF_MEMORY, N_("out of memory"));
goto fail; goto fail;
} }
#else #else
@ -347,7 +347,7 @@ grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)),
fdt_addr = grub_efi_allocate_loader_memory (LINUX_FDT_PHYS_OFFSET, size); fdt_addr = grub_efi_allocate_loader_memory (LINUX_FDT_PHYS_OFFSET, size);
if (!fdt_addr) if (!fdt_addr)
{ {
grub_error (GRUB_ERR_OUT_OF_MEMORY, N_("memory allocation failed")); grub_error (GRUB_ERR_OUT_OF_MEMORY, N_("out of memory"));
goto out; goto out;
} }
#else #else
@ -384,6 +384,7 @@ GRUB_MOD_INIT (linux)
cmd_initrd = grub_register_command ("initrd", grub_cmd_initrd, cmd_initrd = grub_register_command ("initrd", grub_cmd_initrd,
0, N_("Load initrd.")); 0, N_("Load initrd."));
cmd_devicetree = grub_register_command ("devicetree", grub_cmd_devicetree, cmd_devicetree = grub_register_command ("devicetree", grub_cmd_devicetree,
/* TRANSLATORS: DTB stands for device tree blob. */
0, N_("Load DTB file.")); 0, N_("Load DTB file."));
my_mod = mod; my_mod = mod;
fdt_addr = (void *) firmware_get_boot_data (); fdt_addr = (void *) firmware_get_boot_data ();

View file

@ -89,6 +89,6 @@ grub_util_load_config (struct grub_util_config *cfg)
fclose (f); fclose (f);
} }
else else
grub_util_warn (_("cannot open config file `%s': %s"), grub_util_warn (_("cannot open configuration file `%s': %s"),
cfgfile, strerror (errno)); cfgfile, strerror (errno));
} }

View file

@ -37,5 +37,7 @@ grub_get_random (void *out, grub_size_t len)
Some functions like grub-mkpaswd and installing on UUID-less disks will be \ Some functions like grub-mkpaswd and installing on UUID-less disks will be \
disabled." disabled."
grub_util_error ("%s", grub_util_error ("%s",
/* TRANSLATORS: The OS itself may very well have a random
number generator but GRUB doesn't know how to access it. */
_("no random number generator is available for your OS")); _("no random number generator is available for your OS"));
} }

View file

@ -70,12 +70,12 @@ grub_util_hurd_get_disk_info (const char *dev, grub_uint32_t *secsize, grub_disk
&data, &data_len); &data, &data_len);
if (num_ints < 1) if (num_ints < 1)
grub_util_error (_("Storage info for `%s' does not include type"), dev); grub_util_error (_("Storage information for `%s' does not include type"), dev);
if (ints[0] != STORAGE_DEVICE) if (ints[0] != STORAGE_DEVICE)
grub_util_error (_("`%s' is not a local disk"), dev); grub_util_error (_("`%s' is not a local disk"), dev);
if (num_offsets != 2) if (num_offsets != 2)
grub_util_error (_("Storage info for `%s' does indicate neither plain partition nor plain disk"), dev); grub_util_error (_("Storage information for `%s' indicates neither a plain partition nor a plain disk"), dev);
if (parent) if (parent)
{ {
*parent = NULL; *parent = NULL;

View file

@ -134,6 +134,6 @@ grub_util_load_config (struct grub_util_config *cfg)
fclose (f); fclose (f);
} }
else else
grub_util_warn (_("cannot open config file `%s': %s"), grub_util_warn (_("cannot open configuration file `%s': %s"),
cfgfile, strerror (errno)); cfgfile, strerror (errno));
} }

View file

@ -74,7 +74,7 @@ get_ofpathname (const char *dev)
return ret; return ret;
fail: fail:
grub_util_error (_("couldn't find IEEE1275 device tree path for %s.\nYou will have to set `boot-device' variable manually"), grub_util_error (_("couldn't find IEEE1275 device path for %s.\nYou will have to set `boot-device' variable manually"),
dev); dev);
} }

View file

@ -52,6 +52,6 @@ grub_util_load_config (struct grub_util_config *cfg)
fclose (f); fclose (f);
} }
else else
grub_util_warn (_("cannot open config file `%s': %s"), grub_util_warn (_("cannot open configuration file `%s': %s"),
cfgfile, strerror (errno)); cfgfile, strerror (errno));
} }

View file

@ -247,7 +247,7 @@ grub_cmd_serial (grub_extcmd_context_t ctxt, int argc, char **args)
config.rtscts = 0; config.rtscts = 0;
else else
return grub_error (GRUB_ERR_BAD_ARGUMENT, return grub_error (GRUB_ERR_BAD_ARGUMENT,
N_("unsupported serial port flow")); N_("unsupported serial port flow control"));
} }
if (state[OPTION_STOP].set) if (state[OPTION_STOP].set)

View file

@ -1182,7 +1182,7 @@ main (int argc, char *argv[])
if (grub_strcmp (fs->name, "hfs") != 0 if (grub_strcmp (fs->name, "hfs") != 0
&& grub_strcmp (fs->name, "hfsplus") != 0 && grub_strcmp (fs->name, "hfsplus") != 0
&& !is_guess) && !is_guess)
grub_util_error (_("%s is neither hfs nor hfsplus"), grub_util_error (_("filesystem on %s is neither HFS nor HFS+"),
macppcdir); macppcdir);
if (grub_strcmp (fs->name, "hfs") == 0 if (grub_strcmp (fs->name, "hfs") == 0
|| grub_strcmp (fs->name, "hfsplus") == 0) || grub_strcmp (fs->name, "hfsplus") == 0)
@ -1250,7 +1250,7 @@ main (int argc, char *argv[])
} }
if (!config.is_cryptodisk_enabled && have_cryptodisk) if (!config.is_cryptodisk_enabled && have_cryptodisk)
grub_util_error (_("attempt to install to cryptodisk without cryptodisk enabled. " grub_util_error (_("attempt to install to encrypted disk without cryptodisk enabled. "
"Set `%s' in file `%s'."), "GRUB_ENABLE_CRYPTODISK=1", "Set `%s' in file `%s'."), "GRUB_ENABLE_CRYPTODISK=1",
grub_util_get_config_filename ()); grub_util_get_config_filename ());
@ -1845,7 +1845,7 @@ main (int argc, char *argv[])
/* Try to make this image bootable using the EFI Boot Manager, if available. */ /* Try to make this image bootable using the EFI Boot Manager, if available. */
if (!efi_distributor || efi_distributor[0] == '\0') if (!efi_distributor || efi_distributor[0] == '\0')
grub_util_error ("%s", _("EFI distributor id isn't specified.")); grub_util_error ("%s", _("EFI bootloader id isn't specified."));
efifile_path = xasprintf ("\\EFI\\%s\\%s", efifile_path = xasprintf ("\\EFI\\%s\\%s",
efi_distributor, efi_distributor,
efi_file); efi_file);

View file

@ -63,8 +63,8 @@ static struct argp_option options[] = {
/* 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). "*/ "embed" is a verb (command description). "*/
N_("embed FILE as a memdisk image\n" N_("embed FILE as a memdisk image\n"
"Implies `-p (memdisk)/boot/grub' but prefix can be overridden by " "Implies `-p (memdisk)/boot/grub' and overrides any prefix supplied previously,"
"later options"), 0}, " but the prefix itself can be overridden by later options"), 0},
/* TRANSLATORS: "embed" is a verb (command description). "*/ /* TRANSLATORS: "embed" is a verb (command description). "*/
{"config", 'c', N_("FILE"), 0, N_("embed FILE as an early config"), 0}, {"config", 'c', N_("FILE"), 0, N_("embed FILE as an early config"), 0},
/* TRANSLATORS: "embed" is a verb (command description). "*/ /* TRANSLATORS: "embed" is a verb (command description). "*/

View file

@ -80,7 +80,8 @@ argp_parser (int key, char *arg, struct argp_state *state)
struct argp argp = { struct argp argp = {
options, argp_parser, NULL, options, argp_parser, NULL,
"\v"N_("copies GRUB images into net_directory/subdir/target_cpu-platform."), "\v"N_("Prepares GRUB network boot images at net_directory/subdir "
"assuming net_directory being TFTP root."),
NULL, grub_install_help_filter, NULL NULL, grub_install_help_filter, NULL
}; };

View file

@ -212,7 +212,7 @@ struct argp argp = {
options, argp_parser, N_("[OPTION] SOURCE..."), options, argp_parser, N_("[OPTION] SOURCE..."),
/* TRANSLATORS: it generates one single image which is bootable through any method. */ /* TRANSLATORS: it generates one single image which is bootable through any method. */
N_("Make GRUB CD-ROM, disk, pendrive and floppy bootable image.")"\v" N_("Make GRUB CD-ROM, disk, pendrive and floppy bootable image.")"\v"
N_("Generates a bootable rescue image with specified source files, source directories, or mkisofs options listed by the output of `%s'.\n\n" N_("Generates a bootable CD/USB stick/floppy image with specified source files, source directories, or mkisofs options listed by the output of `%s'.\n\n"
"Option -- switches to native xorriso command mode.\n\n" "Option -- switches to native xorriso command mode.\n\n"
"Mail xorriso support requests to <bug-xorriso@gnu.org>."), "Mail xorriso support requests to <bug-xorriso@gnu.org>."),
NULL, help_filter, NULL NULL, help_filter, NULL

View file

@ -58,7 +58,10 @@ static struct argp_option options[] = {
{"bgcolor", 'b', N_("COLOR"), 0, {"bgcolor", 'b', N_("COLOR"), 0,
N_("use COLOR for background"), 0}, N_("use COLOR for background"), 0},
{"text", 't', N_("STRING"), 0, {"text", 't', N_("STRING"), 0,
N_("set the label to render."), 0}, /* TRANSLATORS: The result is always stored to file and
never shown directly, so don't use "show" as synonym for render. Use "create" if
"render" doesn't translate directly. */
N_("set the label to render"), 0},
{"output", 'o', N_("FILE"), 0, {"output", 'o', N_("FILE"), 0,
N_("set output filename. Default is STDOUT"), 0}, N_("set output filename. Default is STDOUT"), 0},
{"font", 'f', N_("FILE"), 0, {"font", 'f', N_("FILE"), 0,
@ -121,6 +124,10 @@ argp_parser (int key, char *arg, struct argp_state *state)
static struct argp argp = { static struct argp argp = {
options, argp_parser, N_("[OPTIONS]"), options, argp_parser, N_("[OPTIONS]"),
/* TRANSLATORS: This file takes a text and creates a graphical representation of it,
putting the result into .disk_label file. The result is always stored to file and
never shown directly, so don't use "show" as synonym for render. Use "create" if
"render" doesn't translate directly. */
N_("Render Apple .disk_label."), N_("Render Apple .disk_label."),
NULL, NULL, NULL NULL, NULL, NULL
}; };

View file

@ -60,14 +60,16 @@ static struct argp_option options[] = {
{"root", 'r', N_("DIR"), 0, {"root", 'r', N_("DIR"), 0,
N_("root directory of the syslinux disk [default=/]."), 0}, N_("root directory of the syslinux disk [default=/]."), 0},
{"target-cwd", 'T', N_("DIR"), 0, {"target-cwd", 'T', N_("DIR"), 0,
N_("current directory as it will be seen on runtime [default=$pwd]."), 0}, N_(
"current directory of the syslinux as it will be seen on runtime [default is parent directory of input file]."
), 0},
{"cwd", 'c', N_("DIR"), 0, {"cwd", 'c', N_("DIR"), 0,
N_("current directory of the syslinux disk [default=$pwd]."), 0}, N_("current directory of the syslinux [default is parent directory of input file]."), 0},
{"output", 'o', N_("FILE"), 0, N_("write output to FILE [default=stdout]."), 0}, {"output", 'o', N_("FILE"), 0, N_("write output to FILE [default=stdout]."), 0},
{"isolinux", 'i', 0, 0, N_("assume isolinux."), 0}, {"isolinux", 'i', 0, 0, N_("assume input is an isolinux configuration file."), 0},
{"pxelinux", 'p', 0, 0, N_("assume pxelinux."), 0}, {"pxelinux", 'p', 0, 0, N_("assume input is a pxelinux configuration file."), 0},
{"syslinux", 's', 0, 0, N_("assume syslinux."), 0}, {"syslinux", 's', 0, 0, N_("assume input is a syslinux configuration file."), 0},
{"verbose", 'v', 0, 0, N_("print verbose messages."), 0}, {"verbose", 'v', 0, 0, N_("print verbose messages."), 0},
{ 0, 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0, 0 }
}; };