+2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Mark strings for translation and add remaining ones to exclude list.
+
2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-file.c (main): Fix sizeof usage.
GRUB_MOD_INIT(file)
{
cmd = grub_register_extcmd ("file", grub_cmd_file, 0,
- "OPTIONS FILE",
+ N_("OPTIONS FILE"),
N_("Check if FILE is of specified type."),
options);
}
switch (dns_servers[i].option)
{
case DNS_OPTION_IPV4:
- strtype = "only ipv4";
+ strtype = _("only ipv4");
break;
case DNS_OPTION_IPV6:
- strtype = "only ipv6";
+ strtype = _("only ipv6");
break;
case DNS_OPTION_PREFER_IPV4:
- strtype = "prefer ipv4";
+ strtype = _("prefer ipv4");
break;
case DNS_OPTION_PREFER_IPV6:
- strtype = "prefer ipv6";
+ strtype = _("prefer ipv6");
break;
}
int
grub_install_compress_gzip (const char *src, const char *dest)
{
- grub_util_error ("no compression is available for your platform");
+ grub_util_error (_("no compression is available for your platform"));
}
int
grub_install_compress_xz (const char *src, const char *dest)
{
- grub_util_error ("no compression is available for your platform");
+ grub_util_error (_("no compression is available for your platform"));
}
int
grub_install_compress_lzop (const char *src, const char *dest)
{
- grub_util_error ("no compression is available for your platform");
+ grub_util_error (_("no compression is available for your platform"));
}
grub_install_register_ieee1275 (int is_prep, const char *install_device,
int partno, const char *relpath)
{
- grub_util_error ("%s", "no IEEE1275 routines are available for your platform");
+ grub_util_error ("%s", _("no IEEE1275 routines are available for your platform"));
}
void
const char *efifile_path,
const char *efi_distributor)
{
- grub_util_error ("%s", "no EFI routines are available for your platform");
+ grub_util_error ("%s", _("no EFI routines are available for your platform"));
}
void
grub_install_sgi_setup (const char *install_device,
const char *imgfile, const char *destname)
{
- grub_util_error ("%s", "no SGI routines are available for your platform");
+ grub_util_error ("%s", _("no SGI routines are available for your platform"));
}
boot_device, NULL }))
{
char *cmd = xasprintf ("setenv boot-device %s", boot_device);
- grub_util_error ("`nvsetenv' failed. \nYou will have to set `boot-device' variable manually. At the IEEE1275 prompt, type:\n %s\n",
+ grub_util_error (_("`nvsetenv' failed. \nYou will have to set `boot-device' variable manually. At the IEEE1275 prompt, type:\n %s\n"),
cmd);
free (cmd);
}
else if (grub_strcmp (fs->name, "udf") == 0)
first_lcn = grub_udf_get_cluster_sector (root_dev->disk, &sec_per_lcn);
else
- grub_util_error ("unsupported fs for blocklist under windows: %s",
+ grub_util_error ("unsupported fs for blocklist on windows: %s",
fs->name);
grub_util_info ("sec_per_lcn = %" GRUB_HOST_PRIuLONG_LONG
if (!get_efi_privilegies ())
{
- grub_util_warn ("Insufficient privilegies to access firmware, assuming BIOS");
+ grub_util_warn (_("Insufficient privilegies to access firmware, assuming BIOS"));
platform = PLAT_BIOS;
}
get_platform ();
if (platform != PLAT_EFI)
- grub_util_error ("%s", "no EFI routines when running in BIOS mode");
+ grub_util_error ("%s", _("no EFI routines are available when running in BIOS mode"));
distrib8_len = grub_strlen (efi_distributor);
distributor16 = xmalloc ((distrib8_len + 1) * GRUB_MAX_UTF16_PER_UTF8
until we find same distributor or empty spot. */
boot_order = get_efi_variable (L"BootOrder", &boot_order_len);
if (boot_order_len < -1)
- grub_util_error ("%s", "unexpected EFI error");
+ grub_util_error ("%s", _("unexpected EFI error"));
if (boot_order_len > 0)
{
size_t i;
}
}
if (!have_order_num)
- grub_util_error ("%s", "Couldn't find free BootNNNN spot");
+ grub_util_error ("%s", _("Couldn't find a free BootNNNN slot"));
path8_len = grub_strlen (efifile_path);
max_path_length = sizeof (*hddp) + sizeof (*filep) + (path8_len * GRUB_MAX_UTF16_PER_UTF8 + 1) * sizeof (grub_uint16_t) + sizeof (*endp);
entry = xmalloc (6 + (distrib16_len + 1) * sizeof (grub_uint16_t) + max_path_length);
grub_install_register_ieee1275 (int is_prep, const char *install_device,
int partno, const char *relpath)
{
- grub_util_error ("%s", "no IEEE1275 routines are available for your platform");
+ grub_util_error ("%s", _("no IEEE1275 routines are available for your platform"));
}
void
grub_install_sgi_setup (const char *install_device,
const char *imgfile, const char *destname)
{
- grub_util_error ("%s", "no SGI routines are available for your platform");
+ grub_util_error ("%s", _("no SGI routines are available for your platform"));
}
ret = mapping[keycode];
if (ret == 0)
{
- grub_printf ("unknown keycode = %lx\n", (unsigned long) keycode);
+ grub_dprintf ("xenkbd", "unknown keycode = %lx\n", (unsigned long) keycode);
continue;
}
vkbd.kbdpage->in_cons++;
#, c-format
msgid "T:grub.%d.%d.%d.%d"
msgstr ""
+
+#: util/grub-install.c:1722
+msgid "\\\\BootX"
+msgstr ""
+
+#: util/grub-install.c:1816
+msgid "\\System\\Library\\CoreServices"
+msgstr ""
+
+#: util/grub-install.c:1702 util/grub-install.c:1802
+msgid "r+"
+msgstr ""
+
+#: util/grub-install.c:1128
+msgid "macppc"
+msgstr ""
+
+#: util/grub-install.c:296
+msgid "macppc-directory"
+msgstr ""
+#: grub-core/term/xen/xen_kbd.c:468 grub-core/term/xen/xen_kbd.c:477
+msgid "xen_keyboard"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:79
+#, c-format
+msgid "device/vfb/%s/backend"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:87
+#, c-format
+msgid "device/vfb/%s/backend-id"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:102
+#, c-format
+msgid "device/vfb/%s/page-ref"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:108
+#, c-format
+msgid "device/vfb/%s/protocol"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:120
+#, c-format
+msgid "device/vfb/%s/event-channel"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:131
+#, c-format
+msgid "device/vfb/%s"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:172
+#, c-format
+msgid "device/vfb/%s/state"
+msgstr ""
+
+#: grub-core/video/xen/xenfb.c:270
+msgid "device/vfb"
+msgstr ""
+
+#: include/grub/emu/misc.h:46
+msgid "I64u"
+msgstr ""
+
+#: include/grub/emu/misc.h:47
+msgid "I64x"
+msgstr ""
+#: grub-core/term/xen/xen_kbd.c:143
+#, c-format
+msgid "device/vkbd/%s/backend"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:151
+#, c-format
+msgid "device/vkbd/%s/backend-id"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:166
+#, c-format
+msgid "device/vkbd/%s/page-ref"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:172
+#, c-format
+msgid "device/vkbd/%s/protocol"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:184
+#, c-format
+msgid "device/vkbd/%s/event-channel"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:195
+#, c-format
+msgid "device/vkbd/%s"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:204
+#, c-format
+msgid "device/vkbd/%s/state"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:267 grub-core/video/xen/xenfb.c:239
+#, c-format
+msgid "%s/page-ref"
+msgstr ""
+
+#: grub-core/term/xen/xen_kbd.c:291
+msgid "device/vkbd"
+msgstr ""
+
+#: grub-core/commands/fileXX.c:51 grub-core/commands/fileXX.c:62
+#: grub-core/commands/fileXX.c:63
+msgid ".note.netbsd.ident"
+msgstr ""
+
+#: grub-core/commands/legacycfg.c:484
+msgid "initrd16initrd"
+msgstr ""
+
+#: grub-core/commands/syslinuxcfg.c:146
+msgid "extract_syslinux_entries_"
+msgstr ""
+
+#: grub-core/commands/syslinuxcfg.c:147
+msgid "syslinux_"
+msgstr ""
+#: grub-core/commands/file.c:41
+msgid "is-x86_64-xen-domu"
+msgstr ""
+
+#: grub-core/commands/file.c:69
+msgid "is-x86_64-kfreebsd"
+msgstr ""
+
+#: grub-core/commands/file.c:76
+msgid "is-x86_64-knetbsd"
+msgstr ""
+
+#: grub-core/commands/file.c:81
+msgid "is-x86_64-efi"
+msgstr ""
+
+#: grub-core/commands/file.c:89
+msgid "is-x86_64-xnu"
+msgstr ""
+
+#: grub-core/commands/file.c:506
+msgid "hibr"
+msgstr ""
+
+#: grub-core/commands/file.c:508
+msgid "HIBR"
+msgstr ""
+
+#: grub-core/disk/diskfilter.c:1060
+msgid ",%"
+msgstr ""
+
+#: grub-core/disk/diskfilter.c:1061
+#, c-format
+msgid ") into %s (%s)\n"
+msgstr ""
+
+#: grub-core/osdep/windows/blocklist.c:88
+msgid ", first_lcn=%"
+msgstr ""
+
+#: util/grub-mkimagexx.c:438
+msgid " (0x%"
+msgstr ""
+
+#: util/grub-mkimagexx.c:666 util/grub-mkimagexx.c:679
+#: util/grub-mkimagexx.c:702 util/grub-mkimagexx.c:728
+#: util/grub-mkimagexx.c:812
+msgid " at the offset 0x%"
+msgstr ""
+
+#: util/misc.c:149
+msgid " bytes at offset 0x%"
+msgstr ""
+
+#: grub-core/term/serial.c:64
+msgid "on|off"
+msgstr ""
+
+#: util/grub-mkimagexx.c:898
+msgid "jump24 relocation out of range"
+msgstr ""
+
+#: grub-core/osdep/linux/ofpath.c:48
+#, c-format
+msgid "ofpath: error: "
+msgstr ""
+
+#: grub-core/osdep/linux/ofpath.c:61
+#, c-format
+msgid "ofpath: info: "
+msgstr ""
+
+#: grub-core/osdep/linux/ofpath.c:119
+#, c-format
+msgid "Trying %s\n"
+msgstr ""
+
+#: grub-core/osdep/windows/blocklist.c:108
+#, c-format
+msgid "FSCTL_GET_RETRIEVAL_POINTERS fails: %s"
+msgstr ""
+
+#: grub-core/osdep/windows/blocklist.c:84
+#, c-format
+msgid "unsupported fs for blocklist on windows: %s"
+msgstr ""
cat po/POTFILES.in | xargs grep -hE -o "( | ){\"[a-z0-9\-]*\",[[:space:]]*('.'|[0-9]|-[0-9])," |sed "s,[[:space:]]*{\",,g;s,\"\,[[:space:]]*\('.'\|[0-9]\|-[0-9]\)\,,,g" | awk '{ print "msgid \"" $0 "\"\nmsgstr \"\"" ; }' > "$tdir/"opts.pot
cat po/POTFILES.in | xargs grep -hE -o "[[:space:]]*\.name[[:space:]]*=[[:space:]]*\"[a-zA-Z0-9 ()]*\"" |sed "s,[[:space:]]*\.name[[:space:]]*=[[:space:]]*\",,g;s,\",,g" | awk '{ print "msgid \"" $0 "\"\nmsgstr \"\"" ; }' > "$tdir/"name.pot
-out="$(cat po/POTFILES.in | grep -v '\(colors.c\|lsefisystab.c\|lsefimmap.c\|lssal.c\|hdparm.c\|sendkey.c\|lsacpi.c\|lspci.c\|usbtest.c\|legacy_parse.c\|/libgcrypt/\|hfs.c\|/efi\.c$\|gnulib\|tests/\|util/ieee1275/ofpath.c\|minilzo.c\|terminfo.c\|setpci.c\|bin2h.c\|cb_timestamps.c\|grub-pe2elf.c\|getroot_[a-z]*.c\|getroot.c\|arc/init.c\|color.c\|grub-mklayout.c\|gentrigtables.c\|lzodefs.h\|lsefi.c\|cbls.c\|/zfs\.h$\|grub-macho2img.c\|lvm.c\|efidisk.c\|grub-mkfont.c\|reiserfs.c\|LzmaEnc.c\)' | xgettext -f - -L C -o - -x po/grub.pot -x "$tdir/"skip.pot -x "$tdir/"skip2.pot -x "$tdir/"skip3.pot -x "$tdir/"opts.pot -x "$tdir/"name.pot -x po/exclude.pot -a --from-code=iso-8859-1)"
+out="$(cat po/POTFILES.in | grep -v '\(colors.c\|lsefisystab.c\|lsefimmap.c\|lssal.c\|hdparm.c\|sendkey.c\|lsacpi.c\|lspci.c\|usbtest.c\|legacy_parse.c\|/libgcrypt/\|hfs.c\|/efi\.c$\|gnulib\|tests/\|util/ieee1275/ofpath.c\|minilzo.c\|terminfo.c\|setpci.c\|bin2h.c\|cb_timestamps.c\|grub-pe2elf.c\|getroot_[a-z]*.c\|getroot.c\|arc/init.c\|color.c\|grub-mklayout.c\|gentrigtables.c\|lzodefs.h\|lsefi.c\|cbls.c\|/zfs\.h$\|grub-macho2img.c\|syslinux_parse.c\|lvm.c\|efidisk.c\|grub-mkfont.c\|reiserfs.c\|LzmaEnc.c\)' | xgettext -f - -L C -o - -x po/grub.pot -x "$tdir/"skip.pot -x "$tdir/"skip2.pot -x "$tdir/"skip3.pot -x "$tdir/"opts.pot -x "$tdir/"name.pot -x po/exclude.pot -a --from-code=iso-8859-1)"
rm -rf "$tdir"
if [ x"$out" != x ]; then
echo "$out"
continue;
}
if (had_file)
- grub_util_error ("multiple files specified");
+ grub_util_error ("one argument expected");
argv2[i - 1] = canonicalize_file_name (argv[i]);
if (!argv2[i - 1])
{
grub_util_fd_close (out);
if (r < 0)
- grub_util_error ("cannot copy `%s' to `%s': %s",
+ grub_util_error (_("cannot copy `%s' to `%s': %s"),
src, dst, grub_util_fd_strerror ());
return 1;
grub_util_info ("compressing `%s' -> `%s'", in_name, out_name);
ret = !compress_func (in_name, out_name);
if (!ret && is_needed)
- grub_util_warn ("can't compress `%s' to `%s'", in_name, out_name);
+ grub_util_warn (_("can't compress `%s' to `%s'"), in_name, out_name);
}
if (!ret && is_needed)
- grub_util_error ("cannot copy `%s' to `%s': %s",
+ grub_util_error (_("cannot copy `%s' to `%s': %s"),
in_name, out_name, grub_util_fd_strerror ());
return ret;
{
char *x = grub_util_path_concat (2, di, de->d_name);
if (grub_util_unlink (x) < 0)
- grub_util_error ("cannont delete `%s': %s", x,
+ grub_util_error (_("cannot delete `%s': %s"), x,
grub_util_fd_strerror ());
free (x);
}
for (i = 0; i + 1 < filled; i++)
if (strcmp (d[i], d[i+1]) == 0)
{
- grub_util_error ("the drive %s is defined multiple times in the device map %s",
+ grub_util_error (_("the drive %s is defined multiple times in the device map %s"),
d[i], dev_map);
}
grub_install_mkdir_p (fldir);
flf = grub_util_fopen (fl, "w");
if (!flf)
- grub_util_error ("Can't create file: %s", strerror (errno));
+ grub_util_error (_("Can't create file: %s"), strerror (errno));
fclose (flf);
relfl = grub_make_system_path_relative_to_its_root (fl);
fprintf (load_cfg_f, "search.file %s root ",
grub_install_copy_file (boot_img_src, boot_img, 1);
grub_util_info ("%sgrub-bios-setup %s %s %s %s %s --directory='%s' --device-map='%s' '%s'",
- install_bootsector ? "" : "NOT RUNNING: ",
+ /* TRANSLATORS: This is a prefix in the log to indicate that usually
+ a command would be executed but due to an option was skipped. */
+ install_bootsector ? "" : _("NOT RUNNING: "),
allow_floppy ? "--allow-floppy " : "",
verbosity ? "--verbose " : "",
force ? "--force " : "",
f = grub_util_fopen (mach_kernel, "r+");
if (!f)
- grub_util_error ("Can't create file: %s", strerror (errno));
+ grub_util_error (_("Can't create file: %s"), strerror (errno));
fclose (f);
fill_core_services (core_services);
else
{
char *s = xasprintf ("dd if=/dev/zero of=%s", install_device);
- grub_util_error ("the PReP partition is not empty. If you are sure you want to use it, run dd to clear it: `%s'",
+ grub_util_error (_("the PReP partition is not empty. If you are sure you want to use it, run dd to clear it: `%s'"),
s);
}
grub_device_close (ins_dev);
f = grub_util_fopen (mach_kernel, "r+");
if (!f)
- grub_util_error ("Can't create file: %s", strerror (errno));
+ grub_util_error (_("Can't create file: %s"), strerror (errno));
fclose (f);
fill_core_services(core_services);
/* Try to make this image bootable using the EFI Boot Manager, if available. */
if (!efi_distributor || efi_distributor[0] == '\0')
- grub_util_error ("%s", "EFI distributor id isn't specified.");
+ grub_util_error ("%s", _("EFI distributor id isn't specified."));
efifile_path = xasprintf ("\\EFI\\%s\\%s",
efi_distributor,
efi_file);
prefix = xasprintf ("/%s", subdir);
if (!targets[platform].mkimage_target)
- grub_util_error ("unsupported platform %s\n", platsub);
+ grub_util_error (_("unsupported platform %s\n"), platsub);
grub_cfg = grub_util_path_concat (2, grubdir, "grub.cfg");
cfg = grub_util_fopen (grub_cfg, "wb");