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
|
@ -77,7 +77,7 @@ main (int argc, char *argv[])
|
|||
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])
|
||||
{
|
||||
|
|
|
@ -114,7 +114,7 @@ grub_install_copy_file (const char *src,
|
|||
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;
|
||||
|
@ -134,11 +134,11 @@ grub_install_compress_file (const char *in_name,
|
|||
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;
|
||||
|
@ -199,7 +199,7 @@ clean_grub_dir (const char *di)
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -646,7 +646,7 @@ device_map_check_duplicates (const char *dev_map)
|
|||
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);
|
||||
}
|
||||
|
||||
|
@ -1354,7 +1354,7 @@ main (int argc, char *argv[])
|
|||
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 ",
|
||||
|
@ -1631,7 +1631,9 @@ main (int argc, char *argv[])
|
|||
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 " : "",
|
||||
|
@ -1701,7 +1703,7 @@ main (int argc, char *argv[])
|
|||
|
||||
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);
|
||||
|
@ -1745,7 +1747,7 @@ main (int argc, char *argv[])
|
|||
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);
|
||||
|
@ -1801,7 +1803,7 @@ main (int argc, char *argv[])
|
|||
|
||||
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);
|
||||
|
@ -1837,7 +1839,7 @@ main (int argc, char *argv[])
|
|||
|
||||
/* 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);
|
||||
|
|
|
@ -134,7 +134,7 @@ process_input_dir (const char *input_dir, enum grub_install_plat platform)
|
|||
|
||||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue