Mark strings for translation and add remaining ones to exclude list.
This commit is contained in:
parent
ee4450eb6f
commit
636977b089
15 changed files with 257 additions and 34 deletions
|
@ -630,7 +630,7 @@ static grub_extcmd_t cmd;
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -673,19 +673,19 @@ grub_cmd_list_dns (struct grub_command *cmd __attribute__ ((unused)),
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,17 +5,17 @@
|
|||
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"));
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ void
|
|||
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
|
||||
|
@ -35,12 +35,12 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
|||
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"));
|
||||
}
|
||||
|
|
|
@ -216,7 +216,7 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device,
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ grub_install_get_blocklist (grub_device_t root_dev,
|
|||
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
|
||||
|
|
|
@ -94,7 +94,7 @@ get_platform (void)
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,7 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
|||
|
||||
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
|
||||
|
@ -237,7 +237,7 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
|||
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;
|
||||
|
@ -312,7 +312,7 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
|||
}
|
||||
}
|
||||
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);
|
||||
|
@ -413,12 +413,12 @@ void
|
|||
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"));
|
||||
}
|
||||
|
|
|
@ -326,7 +326,7 @@ fetch_key (int *is_break)
|
|||
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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue