+2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Another round of string clarification and adding TRANSLATORS comments.
+
2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mknetdir.in: Remove erroneous reference to install_device.
cmd_extractor_source =
grub_register_command ("extract_entries_source", grub_cmd_source,
N_("FILE"),
- N_("Load another config file without changing context but take only menuentries.")
+ N_("Load another config file without changing context but take only menu entries.")
);
cmd_extractor_configfile =
grub_register_command ("extract_entries_configfile", grub_cmd_source,
N_("FILE"),
- N_("Load another config file without changing context but take only menuentries.")
+ N_("Load another config file without changing context but take only menu entries.")
);
cmd_dot =
/* Remember to update enum opt_idxs accordingly. */
static const struct grub_arg_option options[] = {
+ /* TRANSLATORS: In this file "mapping" refers to a change GRUB makes so if
+ your language doesn't have an equivalent of "mapping" you can
+ use the word like "rerouting".
+ */
{"list", 'l', 0, N_("Show the current mappings."), 0, 0},
{"reset", 'r', 0, N_("Reset all mappings to the default values."), 0, 0},
{"swap", 's', 0, N_("Perform both direct and reverse mappings."), 0, 0},
if (argc < 1)
return grub_error (GRUB_ERR_BAD_ARGUMENT,
+ /* TRANSLATORS: it's musical notes, not the notes
+ you take. */
N_("filename or tempo and notes expected"));
if (argc == 1)
{
cmd = grub_register_extcmd ("keystatus", grub_cmd_keystatus, 0,
"[--shift] [--ctrl] [--alt]",
+ /* TRANSLATORS: there are 3 modifiers. */
N_("Check key modifier status."),
options);
}
cmd_check_password = grub_register_command ("legacy_check_password",
grub_cmd_legacy_check_password,
N_("[--md5] PASSWD [FILE]"),
- N_("Simulate grub-legacy `password' command in menuentry mode"));
+ N_("Simulate grub-legacy `password' command in menu entry mode"));
}
}
static const struct grub_arg_option options[] = {
- {"v1", '1', 0, N_("Show v1 tables only."), 0, ARG_TYPE_NONE},
- {"v2", '2', 0, N_("Show v2 and v3 tables only."), 0, ARG_TYPE_NONE}
+ {"v1", '1', 0, N_("Show version 1 tables only."), 0, ARG_TYPE_NONE},
+ {"v2", '2', 0, N_("Show version 2 and version 3 tables only."), 0, ARG_TYPE_NONE}
};
static grub_err_t
cmd = grub_register_extcmd ("menuentry", grub_cmd_menuentry,
GRUB_COMMAND_FLAG_BLOCKS
| GRUB_COMMAND_FLAG_EXTRACTOR,
- N_("BLOCK"), N_("Define a menuentry."), options);
+ N_("BLOCK"), N_("Define a menu entry."), options);
cmd_sub = grub_register_extcmd ("submenu", grub_cmd_menuentry,
GRUB_COMMAND_FLAG_BLOCKS
| GRUB_COMMAND_FLAG_EXTRACTOR,
{
struct grub_smbus_spd spd;
grub_memset (&spd, 0, sizeof (spd));
+ /* TRANSLATORS: it's shown in a report in a way
+ like number 1: ... number 2: ...
+ */
grub_printf_ (N_("RAM slot number %d\n"), i);
err = grub_cs5536_read_spd (smbbase, i, &spd);
if (err)
grub_free (pass->salt);
grub_free (pass);
return grub_error (GRUB_ERR_BAD_ARGUMENT,
+ /* TRANSLATORS: it means that the string which
+ was supposed to be a password hash doesn't
+ have a correct format, not to password
+ mismatch. */
N_("invalid PBKDF2 password"));
}
static const struct grub_arg_option options[] =
{
{"verbose", 'v', 0, N_("Verbose countdown."), 0, 0},
- {"interruptible", 'i', 0, N_("Interruptible with ESC."), 0, 0},
+ {"interruptible", 'i', 0, N_("Allow to interrupt with ESC."), 0, 0},
{0, 0, 0, 0, 0, 0}
};
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP)
grub_xputs (_("Monochrome "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_UNKNOWN)
- grub_xputs (_("Unknown "));
+ grub_xputs (_("Unknown video mode "));
grub_xputs ("\n");
int i;
if (cmd)
- return grub_error (GRUB_ERR_WRITE_ERROR, N_("cannot write to cdrom"));
+ return grub_error (GRUB_ERR_WRITE_ERROR, N_("cannot write to CD-ROM"));
for (i = 0; i < GRUB_BIOSDISK_CDROM_RETRY_COUNT; i++)
if (! grub_biosdisk_rw_int13_extensions (0x42, data->drive, dap))
struct grub_biosdisk_data *data = disk->data;
if (data->flags & GRUB_BIOSDISK_FLAG_CDROM)
- return grub_error (GRUB_ERR_IO, N_("cannot write to cdrom"));
+ return grub_error (GRUB_ERR_IO, N_("cannot write to CD-ROM"));
while (size)
{
#endif
if (lv->size < *nsectors)
return grub_error (GRUB_ERR_OUT_OF_RANGE,
- N_("your LDM embed Partition is too small;"
+ /* TRANSLATORS: it's a partition for embedding,
+ not a partition embed into something. */
+ N_("your LDM embedding Partition is too small;"
" embedding won't be possible"));
*nsectors = lv->size;
*sectors = grub_malloc (*nsectors * sizeof (**sectors));
}
return grub_error (GRUB_ERR_FILE_NOT_FOUND,
+ /* TRANSLATORS: it's a partition for embedding,
+ not a partition embed into something. */
N_("this LDM has no Embedding Partition;"
" embedding won't be possible"));
}
scsi = disk->data;
if (scsi->devtype == grub_scsi_devtype_cdrom)
- return grub_error (GRUB_ERR_IO, N_("cannot write to cdrom"));
+ return grub_error (GRUB_ERR_IO, N_("cannot write to CD-ROM"));
while (size)
{
print_tabs (tab);
if (!child)
{
- grub_printf_ (N_("Mirror element %d isn't correct\n"), i);
+ grub_printf_ (N_("Mirror element number %d isn't correct\n"), i);
continue;
}
- grub_printf_ (N_("Mirror element %d:\n"), i);
+ grub_printf_ (N_("Mirror element number %d:\n"), i);
print_vdev_info (child, tab + 1);
grub_free (child);
nv = grub_zfs_nvlist_lookup_nvlist (nvlist, ZPOOL_CONFIG_VDEV_TREE);
if (!nv)
+ /* TRANSLATORS: There are undetermined number of virtual devices
+ in a device tree, not just one.
+ */
grub_puts_ (N_("No virtual device tree available"));
else
print_vdev_info (nv, 1);
N_("Print ZFS info about DEVICE."));
cmd_bootfs = grub_register_command ("zfs-bootfs", grub_cmd_zfs_bootfs,
N_("FILESYSTEM [VARIABLE]"),
- N_("Print ZFS-BOOTFSOBJ or set it to VARIABLE"));
+ N_("Print ZFS-BOOTFSOBJ or store it into VARIABLE"));
}
GRUB_MOD_FINI (zfsinfo)
grub_register_command_p1 ("gettext", grub_cmd_translate,
N_("STRING"),
+ /* TRANSLATORS: It refers to passing the string through gettext.
+ So it's "translate" in the same meaning as in what you're
+ doing now.
+ */
N_("Translates the string with the current settings."));
/* Reload .mo file information if lang changes. */
|| e->e_ident[EI_MAG3] != ELFMAG3
|| e->e_ident[EI_VERSION] != EV_CURRENT
|| e->e_version != EV_CURRENT)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch independent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-independent ELF magic"));
err = grub_arch_dl_check_header (ehdr);
if (err)
|| e->e_ident[EI_MAG3] != ELFMAG3
|| e->e_ident[EI_VERSION] != EV_CURRENT
|| e->e_version != EV_CURRENT)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch independent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-independent ELF magic"));
return GRUB_ERR_NONE;
}
return NULL;
if (i == ARRAY_SIZE (map))
+ /* TRANSLATORS: it refers to the lack of free slots. */
grub_util_error ("%s", _("device count exceeds limit"));
map[i].device = xstrdup (os_disk);
/* Find a free slot. */
drive = find_free_slot ();
if (drive < 0)
- show_error (_("Map table size exceeded"));
+ show_error (_("device count exceeds limit"));
e = p;
p = strchr (p, ')');
static struct argp_option options[] = {
{"root", 'r', N_("DEVICE_NAME"), 0, N_("Set root device."), 2},
{"device-map", 'm', N_("FILE"), 0,
+ /* TRANSLATORS: There are many devices in device map. */
N_("use FILE as the device map [default=%s]"), 0},
{"directory", 'd', N_("DIR"), 0,
N_("use GRUB files in the directory DIR [default=%s]"), 0},
case ARGP_KEY_ARG:
{
/* Too many arguments. */
- fprintf (stderr, _("Unknown extra argument `%s'.\n"), arg);
+ fprintf (stderr, _("Unknown extra argument `%s'."), arg);
+ fprintf (stderr, "\n");
argp_usage (state);
}
break;
{
va_list ap;
- fprintf (stderr, _("%s: warn:"), program_name);
+ fprintf (stderr, _("%s: warning:"), program_name);
fprintf (stderr, " ");
va_start (ap, fmt);
vfprintf (stderr, fmt, ap);
if (e->e_ident[EI_CLASS] != ELFCLASS32
|| e->e_ident[EI_DATA] != ELFDATA2LSB
|| e->e_machine != EM_386)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
return GRUB_ERR_NONE;
}
if (e->e_ident[EI_CLASS] != ELFCLASS64
|| e->e_ident[EI_DATA] != ELFDATA2LSB
|| e->e_machine != EM_IA_64)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
return GRUB_ERR_NONE;
}
|| e->e_ident[EI_DATA] != ELFDATA2LSB
|| e->e_machine != EM_MIPS)
#endif
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
return GRUB_ERR_NONE;
}
if (e->e_ident[EI_CLASS] != ELFCLASS32
|| e->e_ident[EI_DATA] != ELFDATA2MSB
|| e->e_machine != EM_PPC)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
return GRUB_ERR_NONE;
}
if (e->e_ident[EI_CLASS] != ELFCLASS64
|| e->e_ident[EI_DATA] != ELFDATA2MSB
|| e->e_machine != EM_SPARCV9)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
return GRUB_ERR_NONE;
}
if (e->e_ident[EI_CLASS] != ELFCLASS64
|| e->e_ident[EI_DATA] != ELFDATA2LSB
|| e->e_machine != EM_X86_64)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
return GRUB_ERR_NONE;
}
{"dual", 'D', 0, N_("Display output on all consoles."), 0, 0},
{"serial", 'h', 0, N_("Use serial console."), 0, 0},
{"askname", 'a', 0, N_("Ask for file name to reboot from."), 0, 0},
- {"cdrom", 'C', 0, N_("Use CDROM as root."), 0, 0},
+ {"cdrom", 'C', 0, N_("Use CD-ROM as root."), 0, 0},
{"config", 'c', 0, N_("Invoke user configuration routing."), 0, 0},
{"kdb", 'd', 0, N_("Enter in KDB on boot."), 0, 0},
{"gdb", 'g', 0, N_("Use GDB remote debugger instead of DDB."), 0, 0},
kern_chunk_src, &openbsd_ramdisk);
}
else
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
}
static grub_err_t
cmd_openbsd_ramdisk = grub_register_command ("kopenbsd_ramdisk",
grub_cmd_openbsd_ramdisk, 0,
+ /* TRANSLATORS: ramdisk isn't identifier,
+ it can be translated. */
N_("Load kOpenBSD ramdisk."));
my_mod = mod;
|| e->e_ident[EI_MAG3] != ELFMAG3
|| e->e_ident[EI_VERSION] != EV_CURRENT
|| e->e_version != EV_CURRENT)
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch independent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-independent ELF magic"));
if (e->e_ident[EI_CLASS] != SUFFIX (ELFCLASS))
- return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
*shdr = grub_malloc (e->e_shnum * e->e_shentsize);
if (! *shdr)
case GRUB_LINUX_VID_MODE_NORMAL:
grub_env_set ("gfxpayload", "text");
grub_printf_ (N_("%s is deprecated. "
- "Use set gfxpayload=text before "
- "linux command instead.\n"),
- argv[i]);
+ "Use set gfxpayload=%s before "
+ "linux command instead.\n"), "text",
+ argv[i]);
break;
case 1:
/* FIXME: support 80x50 text. */
grub_env_set ("gfxpayload", "text");
grub_printf_ (N_("%s is deprecated. "
- "Use set gfxpayload=text before "
- "linux command instead.\n"),
- argv[i]);
+ "Use set gfxpayload=%s before "
+ "linux command instead.\n"), "text",
+ argv[i]);
break;
default:
/* Ignore invalid values. */
static const struct grub_arg_option options[] =
{
{"map", 'm', GRUB_ARG_OPTION_REPEATABLE,
+ /* TRANSLATORS: it's about guessing which GRUB disk
+ is which Plan9 disk. If your language has no
+ word "mapping" you can use another word which
+ means that the GRUBDEVICE and PLAN9DEVICE are
+ actually the same device, just named differently
+ in OS and GRUB. */
N_("Override guessed mapping of Plan9 devices."),
N_("GRUBDEVICE=PLAN9DEVICE"),
ARG_TYPE_STRING},
|| ehdr->e_ident[EI_MAG3] != ELFMAG3
|| ehdr->e_ident[EI_DATA] != ELFDATA2LSB)
return grub_error(GRUB_ERR_UNKNOWN_OS,
- N_("invalid arch independent ELF magic"));
+ N_("invalid arch-independent ELF magic"));
if (ehdr->e_ident[EI_CLASS] != ELFCLASS64
|| ehdr->e_version != EV_CURRENT
|| ehdr->e_machine != EM_IA_64)
return grub_error (GRUB_ERR_UNKNOWN_OS,
- N_("invalid arch dependent ELF magic"));
+ N_("invalid arch-dependent ELF magic"));
if (ehdr->e_type != ET_EXEC)
return grub_error (GRUB_ERR_UNKNOWN_OS,
if (grub_elf_is_elf64 (elf))
err = grub_linux_load64 (elf, argv[0], &extra, size);
else
- err = grub_error (GRUB_ERR_BAD_OS, N_("invalid arch dependent ELF magic"));
+ err = grub_error (GRUB_ERR_BAD_OS, N_("invalid arch-dependent ELF magic"));
grub_elf_close (elf);
else if (grub_multiboot_is_elf64 (buffer))
return grub_multiboot_load_elf64 (file, filename, buffer);
- return grub_error (GRUB_ERR_UNKNOWN_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_UNKNOWN_OS, N_("invalid arch-dependent ELF magic"));
}
grub_err_t
|| ehdr->e_ident[EI_MAG2] != ELFMAG2
|| ehdr->e_ident[EI_MAG3] != ELFMAG3
|| ehdr->e_ident[EI_DATA] != ELFDATA2LSB)
- return grub_error(GRUB_ERR_UNKNOWN_OS, N_("invalid arch independent ELF magic"));
+ return grub_error(GRUB_ERR_UNKNOWN_OS, N_("invalid arch-independent ELF magic"));
if (ehdr->e_ident[EI_CLASS] != ELFCLASSXX || ehdr->e_machine != E_MACHINE
|| ehdr->e_version != EV_CURRENT)
- return grub_error (GRUB_ERR_UNKNOWN_OS, N_("invalid arch dependent ELF magic"));
+ return grub_error (GRUB_ERR_UNKNOWN_OS, N_("invalid arch-dependent ELF magic"));
if (ehdr->e_type != ET_EXEC && ehdr->e_type != ET_DYN)
return grub_error (GRUB_ERR_UNKNOWN_OS, N_("this ELF file is not of the right type"));
grub_linux_load64 (elf, argv[0]);
else
{
- grub_error (GRUB_ERR_BAD_FILE_TYPE, N_("invalid arch dependent ELF magic"));
+ grub_error (GRUB_ERR_BAD_FILE_TYPE, N_("invalid arch-dependent ELF magic"));
goto out;
}
grub_linux_load64 (elf, argv[0]);
else
{
- grub_error (GRUB_ERR_BAD_FILE_TYPE, N_("invalid arch dependent ELF magic"));
+ grub_error (GRUB_ERR_BAD_FILE_TYPE, N_("invalid arch-dependent ELF magic"));
goto out;
}
GNU/Linux runlevels.
*/
N_("DIRECTORY [OSBundleRequired]"),
+ /* TRANSLATORS: There are many extensions
+ in extension directory. */
N_("Load XNU extension directory."));
cmd_ramdisk = grub_register_command ("xnu_ramdisk", grub_cmd_xnu_ramdisk, 0,
+ /* TRANSLATORS: ramdisk here isn't identifier. It can be translated. */
N_("Load XNU ramdisk. "
"It will be available in OS as md0."));
cmd_splash = grub_register_extcmd ("xnu_splash",
#ifndef GRUB_MACHINE_EMU
cmd_resume = grub_register_command ("xnu_resume", grub_cmd_xnu_resume,
0, N_("Load an image of hibernated"
- " XNU image."));
+ " XNU."));
#endif
grub_cpu_xnu_init ();
if (len == 0)
return grub_error (GRUB_ERR_FILE_NOT_FOUND,
- N_("this GPT partition label has no BIOS Boot Partition;"
+ N_("this GPT partition label contains no BIOS Boot Partition;"
" embedding won't be possible"));
if (len < *nsectors)
if (! scope || argc > 1)
return grub_error (GRUB_ERR_BAD_ARGUMENT,
+ /* TRANSLATORS: it's about not being
+ inside a function. */
N_("not in function scope"));
if (argc == 0)
grub_err_t err;
err = grub_cryptodisk_cheat_mount (grdev, os_dev);
if (err)
- grub_util_error (_("can't mount crypto volume `%s': %s"),
+ grub_util_error (_("can't mount encrypted volume `%s': %s"),
lastsubdev, grub_errmsg);
}
grub_err_t err;
err = grub_cryptodisk_cheat_mount (grdev, os_dev);
if (err)
- grub_util_error (_("can't mount crypto volume `%s': %s"),
+ grub_util_error (_("can't mount encrypted volume `%s': %s"),
lastsubdev, grub_errmsg);
}
grub_free (grdev);
usage () {
if [ "${target_cpu}-${platform}" = "i386-pc" ] \
|| [ "${target_cpu}-${platform}" = "sparc64-ieee1275" ]; then
- gettext_printf "Usage: %s [OPTION] install_device" "$self"
+ gettext_printf "Usage: %s [OPTION] INSTALL_DEVICE" "$self"
else
- gettext_printf "Usage: %s [OPTION] [install_device]" "$self"
+ gettext_printf "Usage: %s [OPTION] [INSTALL_DEVICE]" "$self"
fi
echo
gettext "Install GRUB on your drive." ; echo
;;
*)
if test "x$install_device" != x; then
- gettext "More than one install_devices?" 1>&2
+ gettext "More than one install device?" 1>&2
echo 1>&2
usage
exit 1
GRUB_MD_SHA512->final (context);
if (grub_memcmp (GRUB_MD_SHA512->read (context), fwstart_good_hash,
GRUB_MD_SHA512->mdlen) != 0)
+ /* TRANSLATORS: fwstart.img may still be good, just it wasn't checked. */
grub_util_warn ("%s",
_("fwstart.img doesn't match the known good version. "
"proceed at your own risk"));
\f
static struct argp_option options[] = {
- {"directory", 'd', N_("DIR"), 0, N_("use images and modules under DIR [default=%s/<platform>]"), 0},
+ {"directory", 'd', N_("DIR"), 0,
+ /* TRANSLATORS: platform here isn't identifier. It can be translated. */
+ 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, N_("embed FILE as a memdisk image"), 0},
+ {"memdisk", 'm', N_("FILE"), 0,
+ /* TRANSLATORS: memdisk here isn't an identifier, it can be translated. */
+ N_("embed FILE as a memdisk image"), 0},
{"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},
memset (pass2, 0, sizeof (pass2));
#if ! defined (__linux__) && ! defined (__FreeBSD__)
+ /* TRANSLATORS: The generator might still be secure just GRUB isn't sure about it. */
printf ("%s", _("WARNING: your random generator isn't known to be secure\n"));
#endif
else
{
/* Too many arguments. */
- fprintf (stderr, _("Unknown extra argument `%s'.\n"), arg);
+ fprintf (stderr, _("Unknown extra argument `%s'."), arg);
+ fprintf (stderr, "\n");
argp_usage (state);
}
break;
# Print the usage.
usage () {
gettext_printf "Usage: %s [OPTION] SOURCE...\n" "$self"
- gettext "Make GRUB CDROM, disk, pendrive and floppy bootable image."; echo
+ gettext "Make GRUB CD-ROM, disk, pendrive and floppy bootable image."; echo
echo
printf " -h, --help %s\n" "$(gettext "print this message and exit")"
printf " -v, --version %s\n" "$(gettext "print the version information and exit")"
printf " -h, --help %s\n" "$(gettext "print this message and exit")"
printf " -v, --version %s\n" "$(gettext "print the version information and exit")"
printf " -o, --output=%-11s%s\n" "$(gettext FILE)" "$(gettext "save output in FILE [required]")"
+ # TRANSLATORS: platform here isn't identifier. It can be translated.
dir_msg="$(gettext_printf "use images and modules under DIR [default=%s/<platform>]" "${libdir}/$(echo ${PACKAGE_TARNAME} | sed ${transform})")"
printf " -d, --directory=%-8s%s\n" \
"DIR" "$dir_msg"
if (arguments.ndevices != 1 && !argument_is_device)
{
char *program = xstrdup(program_name);
- fprintf (stderr, _("Unknown extra argument `%s'.\n"), argv[optind + 1]);
+ fprintf (stderr, _("Unknown extra argument `%s'."), arguments.devices[1]);
+ fprintf (stderr, "\n");
argp_help (&argp, stderr, ARGP_HELP_STD_USAGE, program);
free (program);
exit(1);
# Usage: usage
# Print the usage.
usage () {
- gettext_printf "Usage: %s [OPTION] entry\n" "$self"
- gettext "Set the default boot entry for GRUB, for the next boot only."; echo
+ gettext_printf "Usage: %s [OPTION] MENU_ENTRY\n" "$self"
+ gettext "Set the default boot menu entry for GRUB, for the next boot only."; echo
echo
printf " -h, --help %s\n" "$(gettext "print this message and exit")"
printf " -v, --version %s\n" "$(gettext "print the version information and exit")"
dirmsg="$(gettext_printf "expect GRUB images under the directory DIR/%s instead of the %s directory" "@grubdirname@" "$grubdir")"
printf " --boot-directory=%-7s%s\n" "$(gettext "DIR")" "$dirmsg"
echo
- gettext "ENTRY is a number or a menu item title."; echo
+ gettext "MENU_ENTRY is a number or a menu item title."; echo
echo
gettext "Report bugs to <bug-grub@gnu.org>."; echo
}
bootdir=`echo "$option" | sed 's/--boot-directory=//'` ;;
-*)
- gettext_printf "Unrecognized option \`%s'" "$option" 1>&2
+ gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2
usage
exit 1
;;
*)
if test "x$entry" != x; then
- gettext "More than one entry?" 1>&2
+ gettext "More than one menu entry?" 1>&2
echo >&2
usage
exit 1
done
if test "x$entry" = x; then
- gettext "entry not specified." 1>&2
+ gettext "menu entry not specified." 1>&2
echo >&2
usage
exit 1
else
{
/* Too many arguments. */
- fprintf (stderr, _("Unknown extra argument `%s'.\n"), arg);
+ fprintf (stderr, _("Unknown extra argument `%s'."), arg);
+ fprintf (stderr, "\n");
argp_usage (state);
}
break;
# Usage: usage
# Print the usage.
usage () {
- gettext_printf "Usage: %s [OPTION] entry\n" "$self"
- gettext "Set the default boot entry for GRUB."; echo
+ gettext_printf "Usage: %s [OPTION] MENU_ENTRY\n" "$self"
+ gettext "Set the default boot menu entry for GRUB."; echo
echo
printf " -h, --help %s\n" "$(gettext "print this message and exit")"
printf " -v, --version %s\n" "$(gettext "print the version information and exit")"
dirmsg="$(printf "expect GRUB images under the directory DIR/%s instead of the %s directory" "@grubdirname@" "$grubdir")"
printf " --boot-directory=%-7s%s\n" "$(gettext "DIR")" "$dirmsg"
echo
- gettext "ENTRY is a number or a menu item title."; echo
+ gettext "MENU_ENTRY is a number or a menu item title."; echo
echo
gettext "Report bugs to <bug-grub@gnu.org>."; echo
}
bootdir=`echo "$option" | sed 's/--boot-directory=//'` ;;
-*)
- gettext_printf "Unrecognized option \`%s'" "$option" 1>&2
+ gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2
usage
exit 1
;;
*)
if test "x$entry" != x; then
- gettext "More than one entry?" 1>&2
+ gettext "More than one menu entry?" 1>&2
echo >&2
usage
exit 1
done
if test "x$entry" = x; then
- gettext "entry not specified." 1>&2
+ gettext "menu entry not specified." 1>&2
echo >&2
usage
exit 1
grub_util_error (_("unable to identify a filesystem in %s; safety check can't be performed"),
dest_dev->disk->name);
if (fs && !fs->reserved_first_sector)
+ /* TRANSLATORS: Filesystem may reserve the space just GRUB isn't sure about it. */
grub_util_error (_("%s appears to contain a %s filesystem which isn't known to "
"reserve space for DOS-style boot. Installing GRUB there could "
"result in FILESYSTEM DESTRUCTION if valuable data is overwritten "
&& strcmp (dest_partmap->name, "netbsd") != 0
&& strcmp (dest_partmap->name, "openbsd") != 0
&& strcmp (dest_partmap->name, "sunpc") != 0)
+ /* TRANSLATORS: Partition map may reserve the space just GRUB isn't sure about it. */
grub_util_error (_("%s appears to contain a %s partition map which isn't known to "
"reserve space for DOS-style boot. Installing GRUB there could "
"result in FILESYSTEM DESTRUCTION if valuable data is overwritten "
else
{
/* Too many arguments. */
- fprintf (stderr, _("Unknown extra argument `%s'.\n"), arg);
+ fprintf (stderr, _("Unknown extra argument `%s'."), arg);
+ fprintf (stderr, "\n");
argp_usage (state);
}
break;
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
EOF
if test -n "${initrd}" ; then
+ # TRANSLATORS: ramdisk isn't identifier. Should be translated.
message="$(gettext_printf "Loading initial ramdisk ...")"
cat << EOF
echo '$message'
module ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
EOF
if test -n "${initrd}" ; then
+ # TRANSLATORS: ramdisk isn't identifier. Should be translated.
message="$(gettext_printf "Loading initial ramdisk ...")"
cat << EOF
echo '$message'
# Print the usage.
usage () {
gettext_printf "Usage: %s [OPTION] SOURCE...\n" "$self"
- gettext "Make GRUB CDROM, disk, pendrive and floppy bootable image."; echo
+ gettext "Make GRUB CD-ROM, disk, pendrive and floppy bootable image."; echo
echo
printf " -h, --help %s\n" "$(gettext "print this message and exit")"
printf " -v, --version %s\n" "$(gettext "print the version information and exit")"