~jonathank89/burg/burg-percise

« back to all changes in this revision

Viewing changes to commands/i386/pc/drivemap.c

merge mainline into mips

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <grub/env.h>
27
27
#include <grub/machine/memory.h>
28
28
#include <grub/machine/biosnum.h>
 
29
#include <grub/i18n.h>
29
30
 
30
31
 
31
32
/* Real mode IVT slot (seg:off far pointer) for interrupt 0x13.  */
33
34
 
34
35
/* Remember to update enum opt_idxs accordingly.  */
35
36
static const struct grub_arg_option options[] = {
36
 
  {"list", 'l', 0, "Show the current mappings.", 0, 0},
37
 
  {"reset", 'r', 0, "Reset all mappings to the default values.", 0, 0},
38
 
  {"swap", 's', 0, "Perform both direct and reverse mappings.", 0, 0},
 
37
  {"list", 'l', 0, N_("Show the current mappings."), 0, 0},
 
38
  {"reset", 'r', 0, N_("Reset all mappings to the default values."), 0, 0},
 
39
  {"swap", 's', 0, N_("Perform both direct and reverse mappings."), 0, 0},
39
40
  {0, 0, 0, 0, 0, 0}
40
41
};
41
42
 
403
404
  cmd = grub_register_extcmd ("drivemap", grub_cmd_drivemap,
404
405
                                        GRUB_COMMAND_FLAG_BOTH,
405
406
                                        "drivemap"
406
 
                                        " -l | -r | [-s] grubdev osdisk",
407
 
                                        "Manage the BIOS drive mappings.",
 
407
                                        N_("-l | -r | [-s] grubdev osdisk."),
 
408
                                        N_("Manage the BIOS drive mappings."),
408
409
                                        options);
409
410
  drivemap_hook =
410
411
    grub_loader_register_preboot_hook (&install_int13_handler,