Decrease number of strings to translate.
This commit is contained in:
parent
74fa9417e5
commit
57a691b7e7
12 changed files with 29 additions and 24 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
Decrease number of strings to translate.
|
||||||
|
|
||||||
2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
|
* grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
|
||||||
|
|
|
@ -29,7 +29,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
static const struct grub_arg_option options[] =
|
static const struct grub_arg_option options[] =
|
||||||
{
|
{
|
||||||
{ "set", 's', 0, N_("Variable name to update."), N_("VARNAME"), ARG_TYPE_STRING },
|
{ "set", 's', 0, N_("Set a variable to return value."), N_("VARNAME"), ARG_TYPE_STRING },
|
||||||
{ "upcase", 'U', 0, N_("Translate to upper case."), 0, 0 },
|
{ "upcase", 'U', 0, N_("Translate to upper case."), 0, 0 },
|
||||||
{ "downcase", 'D', 0, N_("Translate to lower case."), 0, 0 },
|
{ "downcase", 'D', 0, N_("Translate to lower case."), 0, 0 },
|
||||||
{ 0, 0, 0, 0, 0, 0 }
|
{ 0, 0, 0, 0, 0, 0 }
|
||||||
|
|
|
@ -149,7 +149,7 @@ grub_arch_dl_relocate_symbols (grub_dl_t mod, void *ehdr,
|
||||||
|
|
||||||
if (!grub_arm_64_check_xxxx26_offset (offset))
|
if (!grub_arm_64_check_xxxx26_offset (offset))
|
||||||
return grub_error (GRUB_ERR_BAD_MODULE,
|
return grub_error (GRUB_ERR_BAD_MODULE,
|
||||||
N_("Trampoline out of range"));
|
"trampoline out of range");
|
||||||
|
|
||||||
grub_arm64_set_xxxx26_offset (place, offset);
|
grub_arm64_set_xxxx26_offset (place, offset);
|
||||||
}
|
}
|
||||||
|
|
|
@ -695,9 +695,9 @@ static grub_command_t cmd_xen, cmd_initrd, cmd_module, cmd_multiboot;
|
||||||
GRUB_MOD_INIT (xen)
|
GRUB_MOD_INIT (xen)
|
||||||
{
|
{
|
||||||
cmd_xen = grub_register_command ("linux", grub_cmd_xen,
|
cmd_xen = grub_register_command ("linux", grub_cmd_xen,
|
||||||
0, N_("Load linux."));
|
0, N_("Load Linux."));
|
||||||
cmd_multiboot = grub_register_command ("multiboot", grub_cmd_xen,
|
cmd_multiboot = grub_register_command ("multiboot", grub_cmd_xen,
|
||||||
0, N_("Load linux."));
|
0, N_("Load Linux."));
|
||||||
cmd_initrd = grub_register_command ("initrd", grub_cmd_initrd,
|
cmd_initrd = grub_register_command ("initrd", grub_cmd_initrd,
|
||||||
0, N_("Load initrd."));
|
0, N_("Load initrd."));
|
||||||
cmd_module = grub_register_command ("module", grub_cmd_module,
|
cmd_module = grub_register_command ("module", grub_cmd_module,
|
||||||
|
|
|
@ -32,7 +32,7 @@ grub_osdep_dl_memalign (grub_size_t align, grub_size_t size)
|
||||||
void *ret;
|
void *ret;
|
||||||
if (align > 4096)
|
if (align > 4096)
|
||||||
{
|
{
|
||||||
grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, N_("too large alignment"));
|
grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, "too large alignment");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
"no,xz,gz,lzo", OPTION_ARG_OPTIONAL, \
|
"no,xz,gz,lzo", OPTION_ARG_OPTIONAL, \
|
||||||
N_("compress GRUB files [optional]"), 1 }, \
|
N_("compress GRUB files [optional]"), 1 }, \
|
||||||
{"core-compress", GRUB_INSTALL_OPTIONS_INSTALL_CORE_COMPRESS, \
|
{"core-compress", GRUB_INSTALL_OPTIONS_INSTALL_CORE_COMPRESS, \
|
||||||
N_("xz|none|auto"), \
|
"xz|none|auto", \
|
||||||
0, N_("choose the compression to use for core image"), 2}, \
|
0, N_("choose the compression to use for core image"), 2}, \
|
||||||
/* TRANSLATORS: platform here isn't identifier. It can be translated. */ \
|
/* TRANSLATORS: platform here isn't identifier. It can be translated. */ \
|
||||||
{ "directory", 'd', N_("DIR"), 0, \
|
{ "directory", 'd', N_("DIR"), 0, \
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
{ "pubkey", 'k', N_("FILE"), 0, \
|
{ "pubkey", 'k', N_("FILE"), 0, \
|
||||||
N_("embed FILE as public key for signature checking"), 0}, \
|
N_("embed FILE as public key for signature checking"), 0}, \
|
||||||
{ "verbose", 'v', 0, 0, \
|
{ "verbose", 'v', 0, 0, \
|
||||||
N_("increase verbosity"), 1 }
|
N_("print verbose messages."), 1 }
|
||||||
|
|
||||||
int
|
int
|
||||||
grub_install_parse (int key, char *arg);
|
grub_install_parse (int key, char *arg);
|
||||||
|
|
|
@ -1176,7 +1176,7 @@ main (int argc, char *argv[])
|
||||||
if (grub_strcmp (fs->name, "hfs") != 0
|
if (grub_strcmp (fs->name, "hfs") != 0
|
||||||
&& grub_strcmp (fs->name, "hfsplus") != 0
|
&& grub_strcmp (fs->name, "hfsplus") != 0
|
||||||
&& !is_guess)
|
&& !is_guess)
|
||||||
grub_util_error (_("%s is neither hfs nor hfsplue"),
|
grub_util_error (_("%s is neither hfs nor hfsplus"),
|
||||||
macppcdir);
|
macppcdir);
|
||||||
if (grub_strcmp (fs->name, "hfs") == 0
|
if (grub_strcmp (fs->name, "hfs") == 0
|
||||||
|| grub_strcmp (fs->name, "hfsplus") == 0)
|
|| grub_strcmp (fs->name, "hfsplus") == 0)
|
||||||
|
|
|
@ -842,7 +842,7 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
|
||||||
sym_addr -= offset;
|
sym_addr -= offset;
|
||||||
sym_addr -= SUFFIX (entry_point);
|
sym_addr -= SUFFIX (entry_point);
|
||||||
if (!grub_arm_64_check_xxxx26_offset (sym_addr))
|
if (!grub_arm_64_check_xxxx26_offset (sym_addr))
|
||||||
grub_util_error ("%s", _("CALL26 Relocation out of range"));
|
grub_util_error ("%s", "CALL26 Relocation out of range");
|
||||||
|
|
||||||
grub_arm64_set_xxxx26_offset((grub_uint32_t *)target,
|
grub_arm64_set_xxxx26_offset((grub_uint32_t *)target,
|
||||||
sym_addr);
|
sym_addr);
|
||||||
|
@ -1201,7 +1201,7 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
|
||||||
case R_AARCH64_JUMP26:
|
case R_AARCH64_JUMP26:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
grub_util_error (_("fixup for relocation %u is not implemented yet"),
|
grub_util_error (_("relocation 0x%x is not implemented yet"),
|
||||||
(unsigned int) ELF_R_TYPE (info));
|
(unsigned int) ELF_R_TYPE (info));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1239,7 +1239,8 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
grub_util_error (_("fixup for relocation 0x%x not implemented"), ELF_R_TYPE (info));
|
grub_util_error (_("relocation 0x%x is not implemented yet"),
|
||||||
|
(unsigned int) ELF_R_TYPE (info));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -79,7 +79,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
|
||||||
|
|
||||||
|
|
||||||
struct argp argp = {
|
struct argp argp = {
|
||||||
options, argp_parser, N_("[OPTION]"),
|
options, argp_parser, NULL,
|
||||||
"\v"N_("copies GRUB images into net_directory/subdir/target_cpu-platform."),
|
"\v"N_("copies GRUB images into net_directory/subdir/target_cpu-platform."),
|
||||||
NULL, grub_install_help_filter, NULL
|
NULL, grub_install_help_filter, NULL
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,7 +42,7 @@ static struct argp_option options[] = {
|
||||||
{"output", 'o', N_("FILE"),
|
{"output", 'o', N_("FILE"),
|
||||||
0, N_("save output in FILE [required]"), 2},
|
0, N_("save output in FILE [required]"), 2},
|
||||||
{"format", 'O', N_("FILE"), 0, 0, 2},
|
{"format", 'O', N_("FILE"), 0, 0, 2},
|
||||||
{"compression", 'C', N_("xz|none|auto"), OPTION_HIDDEN, 0, 2},
|
{"compression", 'C', "xz|none|auto", OPTION_HIDDEN, 0, 2},
|
||||||
{0, 0, 0, 0, 0, 0}
|
{0, 0, 0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -56,15 +56,15 @@ struct arguments
|
||||||
|
|
||||||
static struct argp_option options[] = {
|
static struct argp_option options[] = {
|
||||||
{"target-root", 't', N_("DIR"), 0,
|
{"target-root", 't', N_("DIR"), 0,
|
||||||
N_("root directory as it will be seen on runtime (default /)."), 0},
|
N_("root directory as it will be seen on runtime [default=/]."), 0},
|
||||||
{"root", 'r', N_("DIR"), 0,
|
{"root", 'r', N_("DIR"), 0,
|
||||||
N_("root directory of the syslinux disk (default /)."), 0},
|
N_("root directory of the syslinux disk [default=/]."), 0},
|
||||||
{"target-cwd", 'T', N_("DIR"), 0,
|
{"target-cwd", 'T', N_("DIR"), 0,
|
||||||
N_("current directory as it will be seen on runtime (default $pwd)."), 0},
|
N_("current directory as it will be seen on runtime [default=$pwd]."), 0},
|
||||||
{"cwd", 'c', N_("DIR"), 0,
|
{"cwd", 'c', N_("DIR"), 0,
|
||||||
N_("current directory of the syslinux disk (default $pwd)."), 0},
|
N_("current directory of the syslinux disk [default=$pwd]."), 0},
|
||||||
|
|
||||||
{"output", 'o', N_("FILE"), 0, N_("write output to FILE (default stdout)."), 0},
|
{"output", 'o', N_("FILE"), 0, N_("write output to FILE [default=stdout]."), 0},
|
||||||
{"isolinux", 'i', 0, 0, N_("assume isolinux."), 0},
|
{"isolinux", 'i', 0, 0, N_("assume isolinux."), 0},
|
||||||
{"pxelinux", 'p', 0, 0, N_("assume pxelinux."), 0},
|
{"pxelinux", 'p', 0, 0, N_("assume pxelinux."), 0},
|
||||||
{"syslinux", 's', 0, 0, N_("assume syslinux."), 0},
|
{"syslinux", 's', 0, 0, N_("assume syslinux."), 0},
|
||||||
|
@ -137,7 +137,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct argp argp = {
|
static struct argp argp = {
|
||||||
options, argp_parser, N_("[OPTIONS] FILE ROOT"),
|
options, argp_parser, N_("FILE"),
|
||||||
N_("Transform syslinux config into GRUB one."),
|
N_("Transform syslinux config into GRUB one."),
|
||||||
NULL, NULL, NULL
|
NULL, NULL, NULL
|
||||||
};
|
};
|
||||||
|
|
|
@ -859,7 +859,7 @@ grub_arm_reloc_thm_call (grub_uint16_t *target, Elf32_Addr sym_addr)
|
||||||
somewhere else. */
|
somewhere else. */
|
||||||
if (offset < -0x200000 || offset >= 0x200000)
|
if (offset < -0x200000 || offset >= 0x200000)
|
||||||
return grub_error (GRUB_ERR_BAD_MODULE,
|
return grub_error (GRUB_ERR_BAD_MODULE,
|
||||||
N_("THM_CALL Relocation out of range."));
|
"THM_CALL Relocation out of range.");
|
||||||
|
|
||||||
grub_dprintf ("dl", " relative destination = %p",
|
grub_dprintf ("dl", " relative destination = %p",
|
||||||
(char *) target + offset);
|
(char *) target + offset);
|
||||||
|
@ -879,7 +879,7 @@ grub_arm_reloc_thm_jump19 (grub_uint16_t *target, Elf32_Addr sym_addr)
|
||||||
|
|
||||||
if (!(sym_addr & 1))
|
if (!(sym_addr & 1))
|
||||||
return grub_error (GRUB_ERR_BAD_MODULE,
|
return grub_error (GRUB_ERR_BAD_MODULE,
|
||||||
N_("Relocation targeting wrong execution state"));
|
"Relocation targeting wrong execution state");
|
||||||
|
|
||||||
offset = grub_arm_thm_jump19_get_offset (target);
|
offset = grub_arm_thm_jump19_get_offset (target);
|
||||||
|
|
||||||
|
@ -888,7 +888,7 @@ grub_arm_reloc_thm_jump19 (grub_uint16_t *target, Elf32_Addr sym_addr)
|
||||||
|
|
||||||
if (!grub_arm_thm_jump19_check_offset (offset))
|
if (!grub_arm_thm_jump19_check_offset (offset))
|
||||||
return grub_error (GRUB_ERR_BAD_MODULE,
|
return grub_error (GRUB_ERR_BAD_MODULE,
|
||||||
N_("THM_JUMP19 Relocation out of range."));
|
"THM_JUMP19 Relocation out of range.");
|
||||||
|
|
||||||
grub_arm_thm_jump19_set_offset (target, offset);
|
grub_arm_thm_jump19_set_offset (target, offset);
|
||||||
|
|
||||||
|
@ -907,14 +907,14 @@ grub_arm_reloc_jump24 (grub_uint32_t *target, Elf32_Addr sym_addr)
|
||||||
|
|
||||||
if (sym_addr & 1)
|
if (sym_addr & 1)
|
||||||
return grub_error (GRUB_ERR_BAD_MODULE,
|
return grub_error (GRUB_ERR_BAD_MODULE,
|
||||||
N_("Relocation targeting wrong execution state"));
|
"Relocation targeting wrong execution state");
|
||||||
|
|
||||||
offset = grub_arm_jump24_get_offset (target);
|
offset = grub_arm_jump24_get_offset (target);
|
||||||
offset += sym_addr;
|
offset += sym_addr;
|
||||||
|
|
||||||
if (!grub_arm_jump24_check_offset (offset))
|
if (!grub_arm_jump24_check_offset (offset))
|
||||||
return grub_error (GRUB_ERR_BAD_MODULE,
|
return grub_error (GRUB_ERR_BAD_MODULE,
|
||||||
N_("JUMP24 Relocation out of range."));
|
"JUMP24 Relocation out of range.");
|
||||||
|
|
||||||
|
|
||||||
grub_arm_jump24_set_offset (target, offset);
|
grub_arm_jump24_set_offset (target, offset);
|
||||||
|
|
Loading…
Reference in a new issue