* grub-core/commands/cacheinfo.c: Likewise.
* grub-core/commands/cmp.c: Likewise.
* grub-core/commands/efi/loadbios.c: Likewise.
* grub-core/commands/gptsync.c: Likewise.
* grub-core/commands/ieee1275/suspend.c: Likewise.
* grub-core/commands/legacycfg.c: Likewise.
* grub-core/commands/memrw.c: Likewise.
* grub-core/commands/minicmd.c: Likewise.
* grub-core/commands/parttool.c: Likewise.
* grub-core/commands/time.c: Likewise.
* grub-core/commands/videoinfo.c: Likewise.
* grub-core/disk/geli.c: Likewise.
* grub-core/disk/i386/pc/biosdisk.c: Likewise.
* grub-core/disk/luks.c: Likewise.
* grub-core/disk/lvm.c: Likewise.
* grub-core/font/font_cmd.c: Likewise.
* grub-core/fs/zfs/zfscrypt.c: Likewise.
* grub-core/fs/zfs/zfsinfo.c: Likewise.
* grub-core/gfxmenu/view.c: Likewise.
* grub-core/kern/emu/hostdisk.c: Likewise.
* grub-core/kern/emu/main.c: Likewise.
* grub-core/kern/emu/misc.c: Likewise.
* grub-core/kern/emu/mm.c: Likewise.
* grub-core/kern/mips/arc/init.c: Likewise.
* grub-core/kern/mips/loongson/init.c: Likewise.
* grub-core/kern/partition.c: Likewise.
* grub-core/lib/i386/halt.c: Likewise.
* grub-core/lib/mips/arc/reboot.c: Likewise.
* grub-core/lib/mips/loongson/reboot.c: Likewise.
* grub-core/loader/i386/pc/chainloader.c: Likewise.
* grub-core/loader/i386/xnu.c: Likewise.
* grub-core/loader/multiboot.c: Likewise.
* grub-core/net/bootp.c: Likewise.
* grub-core/net/net.c: Likewise.
* grub-core/normal/term.c: Likewise.
* grub-core/partmap/bsdlabel.c: Likewise.
* grub-core/parttool/msdospart.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.
* grub-core/term/terminfo.c: Likewise.
* grub-core/video/i386/pc/vbe.c: Likewise.
* util/grub-menulst2cfg.c: Likewise.
* util/grub-mkdevicemap.c: Likewise.
* util/grub-mklayout.c: Likewise.
* util/grub-mkrelpath.c: Likewise.
* util/grub-script-check.c: Likewise.
* util/ieee1275/grub-ofpathname.c: Likewise.
* util/resolve.c: Likewise.
+2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/commands/acpihalt.c: Gettextized.
+ * grub-core/commands/cacheinfo.c: Likewise.
+ * grub-core/commands/cmp.c: Likewise.
+ * grub-core/commands/efi/loadbios.c: Likewise.
+ * grub-core/commands/gptsync.c: Likewise.
+ * grub-core/commands/ieee1275/suspend.c: Likewise.
+ * grub-core/commands/legacycfg.c: Likewise.
+ * grub-core/commands/memrw.c: Likewise.
+ * grub-core/commands/minicmd.c: Likewise.
+ * grub-core/commands/parttool.c: Likewise.
+ * grub-core/commands/time.c: Likewise.
+ * grub-core/commands/videoinfo.c: Likewise.
+ * grub-core/disk/geli.c: Likewise.
+ * grub-core/disk/i386/pc/biosdisk.c: Likewise.
+ * grub-core/disk/luks.c: Likewise.
+ * grub-core/disk/lvm.c: Likewise.
+ * grub-core/font/font_cmd.c: Likewise.
+ * grub-core/fs/zfs/zfscrypt.c: Likewise.
+ * grub-core/fs/zfs/zfsinfo.c: Likewise.
+ * grub-core/gfxmenu/view.c: Likewise.
+ * grub-core/kern/emu/hostdisk.c: Likewise.
+ * grub-core/kern/emu/main.c: Likewise.
+ * grub-core/kern/emu/misc.c: Likewise.
+ * grub-core/kern/emu/mm.c: Likewise.
+ * grub-core/kern/mips/arc/init.c: Likewise.
+ * grub-core/kern/mips/loongson/init.c: Likewise.
+ * grub-core/kern/partition.c: Likewise.
+ * grub-core/lib/i386/halt.c: Likewise.
+ * grub-core/lib/mips/arc/reboot.c: Likewise.
+ * grub-core/lib/mips/loongson/reboot.c: Likewise.
+ * grub-core/loader/i386/pc/chainloader.c: Likewise.
+ * grub-core/loader/i386/xnu.c: Likewise.
+ * grub-core/loader/multiboot.c: Likewise.
+ * grub-core/net/bootp.c: Likewise.
+ * grub-core/net/net.c: Likewise.
+ * grub-core/normal/term.c: Likewise.
+ * grub-core/partmap/bsdlabel.c: Likewise.
+ * grub-core/parttool/msdospart.c: Likewise.
+ * grub-core/term/gfxterm.c: Likewise.
+ * grub-core/term/terminfo.c: Likewise.
+ * grub-core/video/i386/pc/vbe.c: Likewise.
+ * util/grub-menulst2cfg.c: Likewise.
+ * util/grub-mkdevicemap.c: Likewise.
+ * util/grub-mklayout.c: Likewise.
+ * util/grub-mkrelpath.c: Likewise.
+ * util/grub-script-check.c: Likewise.
+ * util/ieee1275/grub-ofpathname.c: Likewise.
+ * util/resolve.c: Likewise.
+
2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
Support %1$d syntax.
#endif
#include <grub/acpi.h>
+#include <grub/i18n.h>
#ifndef GRUB_DSDT_TEST
#include <grub/misc.h>
grub_millisleep (1500);
- grub_printf ("ACPI shutdown failed\n");
+ grub_puts_ (N_("ACPI shutdown failed"));
}
#endif
unsigned long hits, misses;
grub_disk_cache_get_performance (&hits, &misses);
- grub_printf ("Disk cache: hits = %lu, misses = %lu ", hits, misses);
+ grub_printf_ (N_("Disk cache: hits = %lu, misses = %lu "), hits, misses);
if (hits + misses)
{
unsigned long ratio = hits * 10000 / (hits + misses);
grub_printf ("(%lu.%lu%%)\n", ratio / 100, ratio % 100);
}
else
- grub_printf ("(N/A)\n");
+ grub_puts_ (N_("(N/A)"));
return 0;
}
if (argc != 2)
return grub_error (GRUB_ERR_BAD_ARGUMENT, "two arguments required");
- grub_printf ("Compare file `%s' with `%s':\n", args[0],
- args[1]);
+ grub_printf_ (N_("Compare file `%s' with `%s':\n"), args[0],
+ args[1]);
file1 = grub_file_open (args[0]);
file2 = grub_file_open (args[1]);
goto cleanup;
if (grub_file_size (file1) != grub_file_size (file2))
- grub_printf ("Files differ in size: %llu [%s], %llu [%s]\n",
- (unsigned long long) grub_file_size (file1), args[0],
- (unsigned long long) grub_file_size (file2), args[1]);
+ grub_printf_ (N_("Files differ in size: %llu [%s], %llu [%s]\n"),
+ (unsigned long long) grub_file_size (file1), args[0],
+ (unsigned long long) grub_file_size (file2), args[1]);
else
{
pos = 0;
{
if (buf1[i] != buf2[i])
{
- grub_printf ("Files differ at the offset %llu: 0x%x [%s], 0x%x [%s]\n",
- (unsigned long long) (i + pos), buf1[i], args[0],
- buf2[i], args[1]);
+ grub_printf_ (N_("Files differ at the offset %llu: 0x%x [%s], 0x%x [%s]\n"),
+ (unsigned long long) (i + pos), buf1[i],
+ args[0], buf2[i], args[1]);
goto cleanup;
}
}
}
while (rd2);
- grub_printf ("The files are identical.\n");
+ /* TRANSLATORS: it's always exactly 2 files. */
+ grub_printf_ (N_("The files are identical.\n"));
}
cleanup:
rom_ptr = (grub_uint32_t *) VBIOS_ADDR;
if (*rom_ptr != BLANK_MEM)
{
- grub_printf ("ROM image is present.\n");
+ grub_puts_ (N_("ROM image is present."));
return 0;
}
*rom_ptr = 0;
if (*rom_ptr != 0)
{
- grub_printf ("Can\'t enable ROM area.\n");
+ grub_puts_ (N_("Can\'t enable ROM area."));
return 0;
}
0, N_("Fake BIOS."));
cmd_loadbios = grub_register_command ("loadbios", grub_cmd_loadbios,
- "BIOS_DUMP [INT10_DUMP]",
+ N_("BIOS_DUMP [INT10_DUMP]"),
N_("Load BIOS dump."));
}
return grub_errno;
}
- grub_printf ("New MBR is written to '%s'\n", args[0]);
+ grub_printf_ (N_("New MBR is written to '%s'\n"), args[0]);
return GRUB_ERR_NONE;
}
int argc __attribute__ ((unused)),
char **args __attribute__ ((unused)))
{
- grub_printf ("Run 'go' to resume GRUB.\n");
+ grub_puts_ (N_("Run 'go' to resume GRUB."));
grub_ieee1275_enter ();
grub_cls ();
return 0;
if (argc == 0)
return grub_error (GRUB_ERR_BAD_ARGUMENT, "arguments expected");
- grub_printf ("Enter password:");
+ grub_puts_ (N_("Enter password: "));
if (!grub_password_get (entered, GRUB_AUTH_MAX_PASSLEN))
return GRUB_ACCESS_DENIED;
static const struct grub_arg_option options[] =
{
{0, 'v', 0, N_("Save read value into variable VARNAME."),
- "VARNAME", ARG_TYPE_STRING},
+ N_("VARNAME"), ARG_TYPE_STRING},
{0, 0, 0, 0, 0, 0}
};
{
grub_dl_t mod;
- grub_printf ("Name\tRef Count\tDependencies\n");
+ grub_printf_ (N_("Name\tRef Count\tDependencies\n"));
FOR_DL_MODULES (mod)
{
grub_dl_dep_t dep;
static int curhandle = 0;
static grub_dl_t mymod;
static char helpmsg[] =
- "Perform COMMANDS on partition.\n"
- "Use \"parttool PARTITION help\" for the list "
- "of available commands.";
+ N_("Perform COMMANDS on partition.\n"
+ "Use \"parttool PARTITION help\" for the list "
+ "of available commands.");
int
grub_parttool_register(const char *part_name,
break;
case GRUB_PARTTOOL_ARG_VAL:
- grub_printf ("=VAL");
+ grub_xputs (_("=VAL"));
spacing -= 4;
break;
}
while (spacing-- > 0)
grub_printf (" ");
- grub_printf ("%s\n", curarg->desc);
+ grub_puts_ (curarg->desc);
}
}
if (! found)
- grub_printf ("Sorry no parttool is available for %s\n",
+ grub_printf_ (N_("Sorry no parttool is available for %s\n"),
dev->disk->partition->partmap->name);
return GRUB_ERR_NONE;
}
if (argc < 1)
{
- grub_printf ("%s\n", helpmsg);
+ grub_puts_ (helpmsg);
return grub_error (GRUB_ERR_BAD_ARGUMENT, "too few arguments");
}
(cmd->func) (cmd, argc - 1, &args[1]);
end = grub_get_time_ms ();
- grub_printf ("Elapsed time: %d.%03d seconds \n", (end - start) / 1000,
- (end - start) % 1000);
+ grub_printf_ (N_("Elapsed time: %d.%03d seconds \n"), (end - start) / 1000,
+ (end - start) % 1000);
return grub_errno;
}
grub_printf ("%4d x %4d x %2d ", info->width, info->height, info->bpp);
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_PURE_TEXT)
- grub_printf ("Text-only ");
+ grub_xputs (_("Text-only "));
/* Show mask and position details for direct color modes. */
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_RGB)
- grub_printf ("Direct, mask: %d/%d/%d/%d pos: %d/%d/%d/%d",
- info->red_mask_size,
- info->green_mask_size,
- info->blue_mask_size,
- info->reserved_mask_size,
- info->red_field_pos,
- info->green_field_pos,
- info->blue_field_pos,
- info->reserved_field_pos);
+ grub_printf_ (N_("Direct, mask: %d/%d/%d/%d pos: %d/%d/%d/%d"),
+ info->red_mask_size,
+ info->green_mask_size,
+ info->blue_mask_size,
+ info->reserved_mask_size,
+ info->red_field_pos,
+ info->green_field_pos,
+ info->blue_field_pos,
+ info->reserved_field_pos);
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_INDEX_COLOR)
- grub_printf ("Packed ");
+ grub_xputs (_("Packed "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_YUV)
- grub_printf ("YUV ");
+ grub_xputs (_("YUV "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_PLANAR)
- grub_printf ("Planar ");
+ grub_xputs (_("Planar "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_HERCULES)
- grub_printf ("Hercules ");
+ grub_xputs (_("Hercules "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_CGA)
- grub_printf ("CGA ");
+ grub_xputs (_("CGA "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_NONCHAIN4)
- grub_printf ("Non-chain 4 ");
+ grub_xputs (_("Non-chain 4 "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP)
- grub_printf ("Monochrome ");
+ grub_xputs (_("Monochrome "));
if (info->mode_type & GRUB_VIDEO_MODE_TYPE_UNKNOWN)
- grub_printf ("Unknown ");
+ grub_xputs (_("Unknown "));
- grub_printf ("\n");
+ grub_xputs ("\n");
return 0;
}
if (grub_video_edid_checksum (edid_info))
{
- grub_printf (" EDID checksum invalid\n");
+ grub_puts_ (N_(" EDID checksum invalid"));
grub_errno = GRUB_ERR_NONE;
return;
}
- grub_printf (" EDID version: %u.%u\n",
- edid_info->version, edid_info->revision);
+ grub_printf_ (N_(" EDID version: %u.%u\n"),
+ edid_info->version, edid_info->revision);
if (grub_video_edid_preferred_mode (edid_info, &edid_width, &edid_height)
== GRUB_ERR_NONE)
- grub_printf (" Preferred mode: %ux%u\n", edid_width, edid_height);
+ grub_printf_ (N_(" Preferred mode: %ux%u\n"), edid_width, edid_height);
else
{
- grub_printf (" No preferred mode available\n");
+ grub_printf_ (N_(" No preferred mode available\n"));
grub_errno = GRUB_ERR_NONE;
}
}
id = grub_video_get_driver_id ();
- grub_printf ("List of supported video modes:\n");
- grub_printf ("Legend: P=Packed pixel, D=Direct color, "
- "mask/pos=R/G/B/reserved\n");
+ grub_puts_ (N_("List of supported video modes:"));
+ grub_puts_ (N_("Legend: P=Packed pixel, D=Direct color, "
+ "mask/pos=R/G/B/reserved"));
FOR_VIDEO_ADAPTERS (adapter)
{
struct grub_video_mode_info info;
struct grub_video_edid_info edid_info;
- grub_printf ("Adapter '%s':\n", adapter->name);
+ grub_printf_ (N_("Adapter '%s':\n"), adapter->name);
if (!adapter->iterate)
{
- grub_printf (" No info available\n");
+ grub_puts_ (N_(" No info available"));
continue;
}
{
if (adapter->init ())
{
- grub_printf (" Failed\n");
+ grub_puts_ (N_(" Failed"));
grub_errno = GRUB_ERR_NONE;
continue;
}
GRUB_MOD_INIT(videoinfo)
{
- cmd = grub_register_command ("videoinfo", grub_cmd_videoinfo, "[WxH[xD]]",
+ cmd = grub_register_command ("videoinfo", grub_cmd_videoinfo, N_("[WxH[xD]]"),
N_("List available video modes. If "
"resolution is given show only modes"
" matching it."));
#ifdef GRUB_MACHINE_PCBIOS
- cmd_vbe = grub_register_command ("vbeinfo", grub_cmd_videoinfo, "[WxH[xD]]",
+ cmd_vbe = grub_register_command ("vbeinfo", grub_cmd_videoinfo,
+ N_("[WxH[xD]]"),
N_("List available video modes. If "
"resolution is given show only modes"
" matching it."));
uuid = xmalloc (GRUB_MD_SHA256->mdlen * 2 + 1);
if (grub_util_fd_read (fd, (void *) &hdr, 512) < 0)
- grub_util_error ("couldn't read ELI metadata");
+ grub_util_error (_("couldn't read ELI metadata"));
COMPILE_TIME_ASSERT (sizeof (header) <= 512);
header = (void *) &hdr;
if (grub_memcmp (header->magic, GELI_MAGIC, sizeof (GELI_MAGIC))
|| grub_le_to_cpu32 (header->version) > 5
|| grub_le_to_cpu32 (header->version) < 1)
- grub_util_error ("wrong ELI magic or version");
+ grub_util_error (_("wrong ELI magic or version"));
err = make_uuid ((void *) &hdr, uuid);
if (err)
keysize = grub_le_to_cpu16 (header.keylen) / 8;
grub_memset (zero, 0, sizeof (zero));
- grub_printf ("Attempting to decrypt master key...\n");
+ grub_puts_ (N_("Attempting to decrypt master key..."));
/* Get the passphrase from the user. */
tmp = NULL;
if (source->partition)
tmp = grub_partition_get_name (source->partition);
- grub_printf ("Enter passphrase for %s%s%s (%s): ", source->name,
- source->partition ? "," : "", tmp ? : "",
- dev->uuid);
+ grub_printf_ (N_("Enter passphrase for %s%s%s (%s): "), source->name,
+ source->partition ? "," : "", tmp ? : "",
+ dev->uuid);
grub_free (tmp);
if (!grub_password_get (passphrase, MAX_PASSPHRASE))
return grub_error (GRUB_ERR_BAD_ARGUMENT, "Passphrase not supplied");
if (grub_memcmp (candidate_key.hmac, key_hmac, dev->hash->mdlen) != 0)
continue;
- grub_printf ("Slot %d opened\n", i);
+ grub_printf_ (N_("Slot %d opened\n"), i);
/* Set the master key. */
if (!dev->rekey)
#include <grub/misc.h>
#include <grub/err.h>
#include <grub/term.h>
+#include <grub/i18n.h>
GRUB_MOD_LICENSE ("GPLv3+");
if (grub_disk_firmware_is_tainted)
{
- grub_printf ("Firmware is marked as tainted, refusing to initialize.\n");
+ grub_puts_ (N_("Firmware is marked as tainted, refusing to initialize."));
return;
}
grub_disk_firmware_fini = grub_disk_biosdisk_fini;
if (err)
return err;
- grub_printf ("Attempting to decrypt master key...\n");
+ grub_puts_ (N_("Attempting to decrypt master key..."));
keysize = grub_be_to_cpu32 (header.keyBytes);
for (i = 0; i < ARRAY_SIZE (header.keyblock); i++)
tmp = NULL;
if (source->partition)
tmp = grub_partition_get_name (source->partition);
- grub_printf ("Enter passphrase for %s%s%s (%s): ", source->name,
+ grub_printf_ (N_("Enter passphrase for %s%s%s (%s): "), source->name,
source->partition ? "," : "", tmp ? : "",
dev->uuid);
grub_free (tmp);
continue;
}
- grub_printf ("Slot %d opened\n", i);
+ grub_printf_ (N_("Slot %d opened\n"), i);
/* Set the master key. */
gcry_err = grub_cryptodisk_setkey (dev, candidate_key, keysize);
#include <grub/misc.h>
#include <grub/lvm.h>
#include <grub/partition.h>
+#include <grub/i18n.h>
#ifdef GRUB_UTIL
#include <grub/emu/misc.h>
for (pv = lv->vg->pvs; pv; pv = pv->next)
{
if (!pv->disk)
- grub_util_error ("Couldn't find PV %s. Check your device.map",
+ grub_util_error (_("Couldn't find PV %s. Check your device.map"),
pv->name);
tmp = grub_malloc (sizeof (*tmp));
tmp->disk = pv->disk;
{
struct grub_font_node *node;
- grub_printf ("Loaded fonts:\n");
+ grub_puts_ (N_("Loaded fonts:"));
for (node = grub_font_list; node; node = node->next)
{
grub_font_t font = node->value;
}
else
{
- grub_printf ("Enter ZFS password: ");
+ grub_xputs (_("Enter ZFS password: "));
if (!grub_password_get ((char *) buf, 1023))
return grub_errno;
real_size = grub_strlen ((char *) buf);
grub_zfs_decrypt = grub_zfs_decrypt_real;
grub_zfs_load_key = grub_zfs_load_key_real;
cmd_key = grub_register_extcmd ("zfskey", grub_cmd_zfs_key, 0,
- "zfskey [-h|-p|-r] [FILE]",
- "Import ZFS wrapping key stored in FILE.",
+ N_("[-h|-p|-r] [FILE]"),
+ N_("Import ZFS wrapping key stored in FILE."),
options);
}
#include <grub/mm.h>
#include <grub/dl.h>
#include <grub/env.h>
+#include <grub/i18n.h>
GRUB_MOD_LICENSE ("GPLv3+");
int isok = 1;
print_tabs (tab);
- grub_printf ("State: ");
+ grub_xputs (_("State: "));
if (grub_zfs_nvlist_lookup_uint64 (nvlist, ZPOOL_CONFIG_REMOVED, &ival))
{
- grub_printf ("removed ");
+ grub_xputs (_("removed "));
isok = 0;
}
if (grub_zfs_nvlist_lookup_uint64 (nvlist, ZPOOL_CONFIG_FAULTED, &ival))
{
- grub_printf ("faulted ");
+ grub_xputs (_("faulted "));
isok = 0;
}
if (grub_zfs_nvlist_lookup_uint64 (nvlist, ZPOOL_CONFIG_OFFLINE, &ival))
{
- grub_printf ("offline ");
+ grub_xputs (_("offline "));
isok = 0;
}
if (grub_zfs_nvlist_lookup_uint64 (nvlist, ZPOOL_CONFIG_FAULTED, &ival))
- grub_printf ("degraded ");
+ grub_xputs (_("degraded "));
if (isok)
- grub_printf ("online");
- grub_printf ("\n");
+ grub_xputs (_("online"));
+ grub_xputs ("\n");
return GRUB_ERR_NONE;
}
if (!type)
{
print_tabs (tab);
- grub_printf ("Incorrect VDEV: no type available\n");
+ grub_puts_ (N_("Incorrect VDEV: no type available"));
return grub_errno;
}
char *devid = 0;
print_tabs (tab);
- grub_printf ("Leaf VDEV\n");
+ grub_puts_ (N_("Leaf VDEV"));
print_state (nvlist, tab);
grub_zfs_nvlist_lookup_string (nvlist, ZPOOL_CONFIG_PHYS_PATH);
print_tabs (tab);
if (!bootpath)
- grub_printf ("Bootpath: unavailable\n");
+ grub_puts_ (N_("Bootpath: unavailable\n"));
else
- grub_printf ("Bootpath: %s\n", bootpath);
+ grub_printf_ (N_("Bootpath: %s\n"), bootpath);
path = grub_zfs_nvlist_lookup_string (nvlist, "path");
print_tabs (tab);
if (!path)
- grub_printf ("Path: unavailable\n");
+ grub_puts_ (N_("Path: unavailable"));
else
- grub_printf ("Path: %s\n", path);
+ grub_printf_ (N_("Path: %s\n"), path);
devid = grub_zfs_nvlist_lookup_string (nvlist, ZPOOL_CONFIG_DEVID);
print_tabs (tab);
if (!devid)
- grub_printf ("Devid: unavailable\n");
+ grub_puts_ (N_("Devid: unavailable"));
else
- grub_printf ("Devid: %s\n", devid);
+ grub_printf_ (N_("Devid: %s\n"), devid);
grub_free (bootpath);
grub_free (devid);
grub_free (path);
print_tabs (tab);
if (nelm <= 0)
{
- grub_printf ("Incorrect mirror VDEV\n");
+ grub_puts_ (N_("Incorrect mirror VDEV"));
return GRUB_ERR_NONE;
}
- grub_printf ("Mirror VDEV with %d children\n", nelm);
+ grub_printf_ (N_("Mirror VDEV with %d children\n"), nelm);
print_state (nvlist, tab);
for (i = 0; i < nelm; i++)
{
print_tabs (tab);
if (!child)
{
- grub_printf ("Mirror VDEV element %d isn't correct\n", i);
+ grub_printf_ (N_("Mirror VDEV element %d isn't correct\n"), i);
continue;
}
- grub_printf ("Mirror VDEV element %d:\n", i);
+ grub_printf_ (N_("Mirror VDEV element %d:\n"), i);
print_vdev_info (child, tab + 1);
grub_free (child);
}
print_tabs (tab);
- grub_printf ("Unknown VDEV type: %s\n", type);
+ grub_printf_ (N_("Unknown VDEV type: %s\n"), type);
return GRUB_ERR_NONE;
}
return GRUB_ERR_NONE;
}
-static char *poolstates[] = {
- [POOL_STATE_ACTIVE] = "active",
- [POOL_STATE_EXPORTED] = "exported",
- [POOL_STATE_DESTROYED] = "destroyed",
- [POOL_STATE_SPARE] = "reserved for hot spare",
- [POOL_STATE_L2CACHE] = "level 2 ARC device",
- [POOL_STATE_UNINITIALIZED] = "uninitialized",
- [POOL_STATE_UNAVAIL] = "unavailable",
- [POOL_STATE_POTENTIALLY_ACTIVE] = "potentially active"
+static const char *poolstates[] = {
+ [POOL_STATE_ACTIVE] = N_("Pool state: active"),
+ [POOL_STATE_EXPORTED] = N_("Pool state: exported"),
+ [POOL_STATE_DESTROYED] = N_("Pool state: destroyed"),
+ [POOL_STATE_SPARE] = N_("Pool state: reserved for hot spare"),
+ [POOL_STATE_L2CACHE] = N_("Pool state: level 2 ARC device"),
+ [POOL_STATE_UNINITIALIZED] = N_("Pool state: uninitialized"),
+ [POOL_STATE_UNAVAIL] = N_("Pool state: unavailable"),
+ [POOL_STATE_POTENTIALLY_ACTIVE] = N_("Pool state: potentially active")
};
static grub_err_t
poolname = grub_zfs_nvlist_lookup_string (nvlist, ZPOOL_CONFIG_POOL_NAME);
if (!poolname)
- grub_printf ("Pool name: unavailable\n");
+ grub_puts_ (N_("Pool name: unavailable"));
else
- grub_printf ("Pool name: %s\n", poolname);
+ grub_printf_ (N_("Pool name: %s\n"), poolname);
found =
grub_zfs_nvlist_lookup_uint64 (nvlist, ZPOOL_CONFIG_POOL_GUID, &guid);
if (!found)
- grub_printf ("Pool GUID: unavailable\n");
+ grub_puts_ (N_("Pool GUID: unavailable"));
else
- grub_printf ("Pool GUID: %016llx\n", (long long unsigned) guid);
+ grub_printf_ (N_("Pool GUID: %016llx\n"), (long long unsigned) guid);
found = grub_zfs_nvlist_lookup_uint64 (nvlist, ZPOOL_CONFIG_POOL_STATE,
&pool_state);
if (!found)
- grub_printf ("Unable to retrieve pool state\n");
+ grub_puts_ (N_("Unable to retrieve pool state"));
else if (pool_state >= ARRAY_SIZE (poolstates))
- grub_printf ("Unrecognized pool state\n");
+ grub_puts_ (N_("Unrecognized pool state"));
else
- grub_printf ("Pool state: %s\n", poolstates[pool_state]);
+ grub_puts_ (poolstates[pool_state]);
nv = grub_zfs_nvlist_lookup_nvlist (nvlist, ZPOOL_CONFIG_VDEV_TREE);
if (!nv)
- grub_printf ("No vdev tree available\n");
+ grub_puts_ (N_("No vdev tree available"));
else
print_vdev_info (nv, 1);
GRUB_MOD_INIT (zfsinfo)
{
cmd_info = grub_register_command ("zfsinfo", grub_cmd_zfsinfo,
- "zfsinfo DEVICE",
- "Print ZFS info about DEVICE.");
+ N_("DEVICE"),
+ N_("Print ZFS info about DEVICE."));
cmd_bootfs = grub_register_command ("zfs-bootfs", grub_cmd_zfs_bootfs,
- "zfs-bootfs FILESYSTEM [VARIABLE]",
- "Print ZFS-BOOTFSOBJ or set it to VARIABLE");
+ N_("FILESYSTEM [VARIABLE]"),
+ N_("Print ZFS-BOOTFSOBJ or set it to VARIABLE"));
}
GRUB_MOD_FINI (zfsinfo)
#include <grub/gfxmenu_view.h>
#include <grub/gui_string_util.h>
#include <grub/icon_manager.h>
+#include <grub/i18n.h>
static void
init_terminal (grub_gfxmenu_view_t view);
view->desktop_image = 0;
view->desktop_color = default_bg_color;
view->terminal_box = grub_gfxmenu_create_box (0, 0);
- view->title_text = grub_strdup ("GRUB Boot Menu");
+ view->title_text = grub_strdup (_("GRUB Boot Menu"));
view->progress_message_text = 0;
view->theme_path = 0;
struct stat st;
if (fstat (fd, &st) < 0)
- grub_util_error ("fstat failed");
+ grub_util_error (_("fstat failed"));
#if defined(__linux__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \
defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__NetBSD__) \
return minfo.dki_capacity;
# else
if (nr & ((1 << log_sector_size) - 1))
- grub_util_error ("unaligned device size");
+ grub_util_error (_("unaligned device size"));
return (nr >> log_sector_size);
# endif
size = grub_util_get_disk_size (map[drive].device);
if (size % 512)
- grub_util_error ("unaligned device size");
+ grub_util_error (_("unaligned device size"));
disk->total_sectors = size >> 9;
error = geom_gettree (&mesh);
if (error != 0)
- grub_util_error ("couldn't open geom");
+ grub_util_error (_("couldn't open geom"));
LIST_FOREACH (class, &mesh.lg_class, lg_class)
if (strcasecmp (class->lg_name, "part") == 0)
break;
if (!class)
- grub_util_error ("couldn't open geom part");
+ grub_util_error (_("couldn't open geom part"));
LIST_FOREACH (geom, &class->lg_geom, lg_geom)
{
continue;
if (*p != '(')
- show_error ("No open parenthesis found");
+ show_error (_("No open parenthesis found"));
p++;
/* Find a free slot. */
drive = find_free_slot ();
if (drive < 0)
- show_error ("Map table size exceeded");
+ show_error (_("Map table size exceeded"));
e = p;
p = strchr (p, ')');
if (! p)
- show_error ("No close parenthesis found");
+ show_error (_("No close parenthesis found"));
map[drive].drive = xmalloc (p - e + sizeof ('\0'));
strncpy (map[drive].drive, e, p - e + sizeof ('\0'));
p++;
if (*p == '\0')
- show_error ("No filename found");
+ show_error (_("No filename found"));
/* NUL-terminate the filename. */
e = p;
{
map[drive].device = xmalloc (PATH_MAX);
if (! realpath (p, map[drive].device))
- grub_util_error ("cannot get the real path of `%s'", p);
+ grub_util_error (_("cannot get the real path of `%s'"), p);
}
else
#endif
{
if (status)
fprintf (stderr,
- "Try `%s --help' for more information.\n", program_name);
+ _("Try `%s --help' for more information.\n"), program_name);
else
printf (
- "Usage: %s [OPTION]...\n"
+ _("Usage: %s [OPTION]...\n"
"\n"
"GRUB emulator.\n"
"\n"
" -h, --help display this message and exit\n"
" -V, --version print version information and exit\n"
"\n"
- "Report bugs to <%s>.\n", program_name, DEFAULT_DEVICE_MAP, DEFAULT_DIRECTORY, PACKAGE_BUGREPORT);
+ "Report bugs to <%s>.\n"), program_name, DEFAULT_DEVICE_MAP, DEFAULT_DIRECTORY, PACKAGE_BUGREPORT);
return status;
}
\f
if (optind < argc)
{
- fprintf (stderr, "Unknown extra argument `%s'.\n", argv[optind]);
+ fprintf (stderr, _("Unknown extra argument `%s'.\n"), argv[optind]);
return usage (1);
}
/* Wait until the ARGS.HOLD variable is cleared by an attached debugger. */
if (hold && verbosity > 0)
- printf ("Run \"gdb %s %d\", and set ARGS.HOLD to zero.\n",
+ printf (_("Run \"gdb %s %d\", and set ARGS.HOLD to zero.\n"),
program_name, (int) getpid ());
while (hold)
{
p = malloc (size);
if (! p)
- grub_util_error ("out of memory");
+ grub_util_error (_("out of memory"));
return p;
}
{
ptr = realloc (ptr, size);
if (! ptr)
- grub_util_error ("out of memory");
+ grub_util_error (_("out of memory"));
return ptr;
}
if (vasprintf (&result, fmt, ap) < 0)
{
if (errno == ENOMEM)
- grub_util_error ("out of memory");
+ grub_util_error (_("out of memory"));
return NULL;
}
#else
(void) align;
(void) size;
- grub_util_error ("grub_memalign is not supported");
+ grub_util_error (_("grub_memalign is not supported"));
#endif
if (!p)
#include <grub/term.h>
#include <grub/arc/arc.h>
#include <grub/offsets.h>
+#include <grub/i18n.h>
const char *type_names[] = {
#ifdef GRUB_CPU_WORDS_BIGENDIAN
grub_millisleep (1500);
- grub_printf ("Shutdown failed\n");
+ grub_puts_ (N_("Shutdown failed"));
grub_refresh ();
while (1);
}
grub_millisleep (1500);
- grub_printf ("Exit failed\n");
+ grub_puts_ (N_("Exit failed"));
grub_refresh ();
while (1);
}
#include <grub/cs5536.h>
#include <grub/term.h>
#include <grub/cpu/memory.h>
+#include <grub/i18n.h>
extern void grub_video_sm712_init (void);
extern void grub_video_sis315pro_init (void);
break;
}
- grub_printf ("Shutdown failed\n");
+ grub_puts_ (N_("Shutdown failed"));
grub_refresh ();
while (1);
}
#include <grub/mm.h>
#include <grub/partition.h>
#include <grub/disk.h>
+#include <grub/i18n.h>
#ifdef GRUB_UTIL
#include <grub/util/misc.h>
grub_dprintf ("partition", "sub-partition %s%d of (%s,%s) ends after parent.\n",
part->partmap->name, part->number + 1, disk->name, partname);
#ifdef GRUB_UTIL
- grub_util_warn ("Discarding improperly nested partition (%s,%s,%s%d)",
+ grub_util_warn (_("Discarding improperly nested partition (%s,%s,%s%d)"),
disk->name, partname, part->partmap->name, part->number + 1);
#endif
grub_free (partname);
#include <grub/cpu/io.h>
#include <grub/misc.h>
#include <grub/acpi.h>
+#include <grub/i18n.h>
const char bochs_shutdown[] = "Shutdown";
for (i = 0; i < sizeof (bochs_shutdown) - 1; i++)
grub_outb (bochs_shutdown[i], 0x8900);
- grub_printf ("GRUB doesn't know how to halt this machine yet!\n");
+ grub_puts_ (N_("GRUB doesn't know how to halt this machine yet!"));
/* In order to return we'd have to check what the previous status of IF
flag was. But user most likely doesn't want to return anyway ... */
#include <grub/misc.h>
#include <grub/time.h>
#include <grub/term.h>
+#include <grub/i18n.h>
void
grub_reboot (void)
grub_millisleep (1500);
- grub_printf ("Reboot failed\n");
+ grub_puts_ (N_("Reboot failed"));
grub_refresh ();
while (1);
}
#include <grub/cs5536.h>
#include <grub/time.h>
#include <grub/term.h>
+#include <grub/i18n.h>
void
grub_reboot (void)
}
grub_millisleep (1500);
- grub_printf ("Reboot failed\n");
+ grub_puts_ (N_("Reboot failed"));
grub_refresh ();
while (1);
}
GRUB_MOD_INIT(chainloader)
{
cmd = grub_register_command ("chainloader", grub_cmd_chainloader,
- "[--force|--bpb] FILE",
+ N_("[--force|--bpb] FILE"),
N_("Load another boot loader."));
my_mod = mod;
}
{
grub_print_error ();
grub_errno = GRUB_ERR_NONE;
- grub_printf ("Booting in blind mode\n");
+ grub_puts_ (N_("Booting in blind mode"));
bootparams->lfb_mode = 0;
bootparams->lfb_width = 0;
if (console_required)
return grub_error (GRUB_ERR_BAD_OS,
"OS requires a console but none is available");
- grub_printf ("WARNING: no console will be available to OS");
+ grub_puts_ (N_("WARNING: no console will be available to OS"));
accepts_video = 0;
accepts_ega_text = 0;
return GRUB_ERR_NONE;
grub_bootp_init (void)
{
cmd_bootp = grub_register_command ("net_bootp", grub_cmd_bootp,
- "[CARD]",
+ N_("[CARD]"),
N_("perform a bootp autoconfiguration"));
cmd_dhcp = grub_register_command ("net_dhcp", grub_cmd_bootp,
- "[CARD]",
+ N_("[CARD]"),
N_("perform a bootp autoconfiguration"));
cmd_getdhcp = grub_register_command ("net_get_dhcp_option", grub_cmd_dhcpopt,
N_("VAR INTERFACE NUMBER DESCRIPTION"),
GRUB_MOD_INIT(net)
{
cmd_addaddr = grub_register_command ("net_add_addr", grub_cmd_addaddr,
- "SHORTNAME CARD ADDRESS [HWADDRESS]",
+ N_("SHORTNAME CARD ADDRESS [HWADDRESS]"),
N_("Add a network address."));
cmd_deladdr = grub_register_command ("net_del_addr", grub_cmd_deladdr,
- "SHORTNAME",
+ N_("SHORTNAME"),
N_("Delete a network address."));
cmd_addroute = grub_register_command ("net_add_route", grub_cmd_addroute,
- "SHORTNAME NET [INTERFACE| gw GATEWAY]",
+ N_("SHORTNAME NET [INTERFACE| gw GATEWAY]"),
N_("Add a network route."));
cmd_delroute = grub_register_command ("net_del_route", grub_cmd_delroute,
- "SHORTNAME",
+ N_("SHORTNAME"),
N_("Delete a network route."));
cmd_lsroutes = grub_register_command ("net_ls_routes", grub_cmd_listroutes,
"", N_("list network routes"));
#include <grub/env.h>
#include <grub/normal.h>
#include <grub/charset.h>
+#include <grub/i18n.h>
struct term_state
{
pos = grub_term_save_pos ();
- grub_utf8_to_ucs4_alloc ("--MORE--", &unicode_str,
+ /* TRANSLATORS: This has to fit on one line. It's ok to include few
+ words but don't write poems. */
+ grub_utf8_to_ucs4_alloc (_("--MORE--"), &unicode_str,
&unicode_last_position);
if (!unicode_str)
#include <grub/misc.h>
#include <grub/dl.h>
#include <grub/msdos_partition.h>
+#include <grub/i18n.h>
GRUB_MOD_LICENSE ("GPLv3+");
/* disk->partition != NULL as 0 < delta */
partname = disk->partition ? grub_partition_get_name (disk->partition)
: "";
- grub_util_warn ("Discarding improperly nested partition (%s,%s,%s%d)",
+ grub_util_warn (_("Discarding improperly nested partition (%s,%s,%s%d)"),
disk->name, partname, p.partmap->name, p.number + 1);
grub_free (partname);
#endif
#include <grub/disk.h>
#include <grub/partition.h>
#include <grub/parttool.h>
+#include <grub/i18n.h>
GRUB_MOD_LICENSE ("GPLv2+");
static struct grub_parttool_argdesc grub_pcpart_bootargs[] =
{
- {"boot", "Make partition active", GRUB_PARTTOOL_ARG_BOOL},
+ {"boot", N_("Make partition active"), GRUB_PARTTOOL_ARG_BOOL},
{0, 0, 0}
};
for (i = 0; i < 4; i++)
mbr.entries[i].flag = 0x0;
mbr.entries[index].flag = 0x80;
- grub_printf ("Partition %d is active now. \n", index);
+ grub_printf_ (N_("Partition %d is active now. \n"), index);
}
else
{
mbr.entries[index].flag = 0x0;
- grub_printf ("Cleared active flag on %d. \n", index);
+ grub_printf (N_("Cleared active flag on %d. \n"), index);
}
/* Write the MBR. */
static struct grub_parttool_argdesc grub_pcpart_typeargs[] =
{
- {"type", "Change partition type", GRUB_PARTTOOL_ARG_VAL},
- {"hidden", "Make partition hidden", GRUB_PARTTOOL_ARG_BOOL},
+ {"type", N_("Change partition type"), GRUB_PARTTOOL_ARG_VAL},
+ {"hidden", N_("Make partition hidden"), GRUB_PARTTOOL_ARG_BOOL},
{0, 0, 0}
};
}
mbr.entries[index].type = type;
- grub_printf ("Setting partition type to 0x%x\n", type);
+ grub_printf_ (N_("Setting partition type to 0x%x\n"), type);
/* Write the parttable. */
grub_disk_write (dev->disk, part->offset, 0,
static const struct grub_arg_option background_image_cmd_options[] =
{
- {"mode", 'm', 0, "Background image mode.", "stretch|normal",
+ /* TRANSLATORS: note that GRUB will accept only original keywords stretch
+ and normal, not the translated ones. So please put both in translation
+ e.g. stretch=(%STRETCH%)|normal(=%NORMAL). */
+ {"mode", 'm', 0, N_("Background image mode."), N_("stretch|normal"),
ARG_TYPE_STRING},
{0, 0, 0, 0, 0, 0}
};
};
struct grub_term_output *cur;
- grub_printf ("Current terminfo types: \n");
+ grub_puts_ (N_("Current terminfo types:"));
for (cur = terminfo_outputs; cur;
cur = ((struct grub_terminfo_output_state *) cur->data)->next)
grub_printf ("%s: %s\t%s\n", cur->name,
#include <grub/mm.h>
#include <grub/video.h>
#include <grub/i386/pc/int.h>
+#include <grub/i18n.h>
GRUB_MOD_LICENSE ("GPLv3+");
static void
grub_video_vbe_print_adapter_specific_info (void)
{
- grub_printf (" VBE info: version: %d.%d OEM software rev: %d.%d\n",
- controller_info.version >> 8,
- controller_info.version & 0xFF,
- controller_info.oem_software_rev >> 8,
- controller_info.oem_software_rev & 0xFF);
-
+ grub_printf_ (N_(" VBE info: version: %d.%d OEM software rev: %d.%d\n"),
+ controller_info.version >> 8,
+ controller_info.version & 0xFF,
+ controller_info.oem_software_rev >> 8,
+ controller_info.oem_software_rev & 0xFF);
+
/* The total_memory field is in 64 KiB units. */
- grub_printf (" total memory: %d KiB\n",
- (controller_info.total_memory << 16) / 1024);
+ grub_printf_ (N_(" total memory: %d KiB\n"),
+ (controller_info.total_memory << 16) / 1024);
}
static struct grub_video_adapter grub_video_vbe_adapter =
#include <errno.h>
#include <grub/util/misc.h>
#include <grub/misc.h>
+#include <grub/i18n.h>
int
main (int argc, char **argv)
if (argc >= 2 && argv[1][0] == '-')
{
- fprintf (stdout, "Usage: %s [INFILE [OUTFILE]]\n", argv[0]);
+ fprintf (stdout, _("Usage: %s [INFILE [OUTFILE]]\n"), argv[0]);
return 0;
}
in = fopen (argv[1], "r");
if (!in)
{
- fprintf (stderr, "Couldn't open %s for reading: %s\n",
+ fprintf (stderr, _("Couldn't open %s for reading: %s\n"),
argv[1], strerror (errno));
return 1;
}
{
if (in != stdin)
fclose (in);
- fprintf (stderr, "Couldn't open %s for writing: %s\n",
+ fprintf (stderr, _("Couldn't open %s for writing: %s\n"),
argv[2], strerror (errno));
return 1;
}
fp = fopen (device_map, "w");
if (! fp)
- grub_util_error ("cannot open %s", device_map);
+ grub_util_error (_("cannot open %s"), device_map);
grub_util_iterate_devices (process_device, floppy_disks);
{
if (status)
fprintf (stderr,
- "Try `%s --help' for more information.\n", program_name);
+ _("Try `%s --help' for more information.\n"), program_name);
else
- printf ("\
+ printf (_("\
Usage: %s [OPTION]...\n\
\n\
Generate a device map file automatically.\n\
-v, --verbose print verbose messages\n\
\n\
Report bugs to <%s>.\n\
-", program_name,
+"), program_name,
DEFAULT_DEVICE_MAP, PACKAGE_BUGREPORT);
exit (status);
usage (int status)
{
if (status)
- fprintf (stderr, "Try `%s --help' for more information.\n", program_name);
+ fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name);
else
- printf ("\
+ printf (_("\
Usage: %s [OPTIONS]\n\
-i, --input set input filename. Default is STDIN\n\
-o, --output set output filename. Default is STDOUT\n\
-V, --version print version information and exit.\n\
-v, --verbose print verbose messages.\n\
\n\
-Report bugs to <%s>.\n", program_name, PACKAGE_BUGREPORT);
+Report bugs to <%s>.\n"), program_name, PACKAGE_BUGREPORT);
exit (status);
}
if (strcmp (code, console_grub_equivalences_common[i].layout) == 0)
return console_grub_equivalences_common[i].grub;
- fprintf (stderr, "Unknown key %s\n", code);
+ fprintf (stderr, _("Unknown key %s\n"), code);
return '\0';
}
if (keycode_usb == 0
|| keycode_usb >= GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE)
{
- fprintf (stderr, "Unknown keycode 0x%02x\n", keycode_linux);
+ fprintf (stderr, _("Unknown keycode 0x%02x\n"), keycode_linux);
continue;
}
if (keycode_usb < GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE)
if (ok == 0)
{
- fprintf (stderr, "ERROR: no keycodes found. Check output of %s.\n",
+ fprintf (stderr, _("ERROR: no keycodes found. Check output of %s.\n"),
CKBCOMP);
exit (1);
}
in = stdin;
if (!in)
- grub_util_error ("Couldn't open input file: %s\n", strerror (errno));
+ grub_util_error (_("Couldn't open input file: %s\n"), strerror (errno));
if (outfile_name)
out = fopen (outfile_name, "wb");
{
if (in != stdin)
fclose (in);
- grub_util_error ("Couldn't open output file: %s\n", strerror (errno));
+ grub_util_error (_("Couldn't open output file: %s\n"), strerror (errno));
}
write_keymaps (in, out);
usage (int status)
{
if (status)
- fprintf (stderr, "Try `%s --help' for more information.\n", program_name);
+ fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name);
else
- printf ("\
+ printf (_("\
Usage: %s [OPTIONS] PATH\n\
\n\
Make a system path relative to its root.\n\
-h, --help display this message and exit\n\
-V, --version print version information and exit\n\
\n\
-Report bugs to <%s>.\n", program_name, PACKAGE_BUGREPORT);
+Report bugs to <%s>.\n"), program_name, PACKAGE_BUGREPORT);
exit (status);
}
if (optind >= argc)
{
- fprintf (stderr, "No path is specified.\n");
+ fprintf (stderr, _("No path is specified.\n"));
usage (1);
}
if (optind + 1 != argc)
{
- fprintf (stderr, "Unknown extra argument `%s'.\n", argv[optind + 1]);
+ fprintf (stderr, _("Unknown extra argument `%s'.\n"), argv[optind + 1]);
usage (1);
}
{
if (status)
fprintf (stderr,
- "Try ``%s --help'' for more information.\n", program_name);
+ _("Try ``%s --help'' for more information.\n"), program_name);
else
- printf ("\
+ printf (_("\
Usage: %s [PATH]\n\
\n\
Checks GRUB script configuration file for syntax errors.\n\
-v, --verbose print the script as it is being processed\n\
\n\
Report bugs to <%s>.\n\
-", program_name,
+"), program_name,
PACKAGE_BUGREPORT);
exit (status);
}
}
else if (optind + 1 != argc)
{
- fprintf (stderr, "Unknown extra argument `%s'.\n", argv[optind + 1]);
+ fprintf (stderr, _("Unknown extra argument `%s'.\n"), argv[optind + 1]);
usage (1);
}
else
if (found_input && script == 0)
{
- fprintf (stderr, "error: line no: %u\n", lineno);
+ fprintf (stderr, _("error: line no: %u\n"), lineno);
return 1;
}
if (argc != 2 || strcmp (argv[1], "--help") == 0)
{
- printf("Usage: %s DEVICE\n", program_name);
+ printf(_("Usage: %s DEVICE\n"), program_name);
return 1;
}
if (strcmp (argv[1], "--version") == 0)
#include <grub/emu/misc.h>
#include <grub/util/misc.h>
#include <grub/util/resolve.h>
+#include <grub/i18n.h>
/* Module. */
struct mod_list
/* Get the target name. */
p = strchr (buf, ':');
if (! p)
- grub_util_error ("invalid line format: %s", buf);
+ grub_util_error (_("invalid line format: %s"), buf);
*p++ = '\0';
path = grub_util_get_path (prefix, dep_list_file);
fp = fopen (path, "r");
if (! fp)
- grub_util_error ("cannot open %s", path);
+ grub_util_error (_("cannot open %s"), path);
free (path);
dep_list = read_dep_list (fp);