73
73
struct grub_apm_info info;
74
74
if (!grub_apm_get_info (&info))
75
return grub_error (GRUB_ERR_IO, "no APM found");
75
return grub_error (GRUB_ERR_IO, N_("no APM found"));
77
grub_printf ("Vesion %u.%u\n"
78
"32-bit CS = 0x%x, len = 0x%x, offset = 0x%x\n"
79
"16-bit CS = 0x%x, len = 0x%x\n"
80
"DS = 0x%x, len = 0x%x\n",
81
info.version >> 8, info.version & 0xff,
82
info.cseg, info.cseg_len, info.offset,
83
info.cseg_16, info.cseg_16_len,
84
info.dseg, info.dseg_len);
77
grub_printf_ (N_("Version %u.%u\n"
78
"32-bit CS = 0x%x, len = 0x%x, offset = 0x%x\n"
79
"16-bit CS = 0x%x, len = 0x%x\n"
80
"DS = 0x%x, len = 0x%x\n"),
81
info.version >> 8, info.version & 0xff,
82
info.cseg, info.cseg_len, info.offset,
83
info.cseg_16, info.cseg_16_len,
84
info.dseg, info.dseg_len);
85
85
grub_xputs (info.flags & GRUB_APM_FLAGS_16BITPROTECTED_SUPPORTED
86
? "16-bit protected interface supported\n"
87
: "16-bit protected interface unsupported\n");
86
? _("16-bit protected interface supported\n")
87
: _("16-bit protected interface unsupported\n"));
88
88
grub_xputs (info.flags & GRUB_APM_FLAGS_32BITPROTECTED_SUPPORTED
89
? "32-bit protected interface supported\n"
90
: "32-bit protected interface unsupported\n");
89
? _("32-bit protected interface supported\n")
90
: _("32-bit protected interface unsupported\n"));
91
91
grub_xputs (info.flags & GRUB_APM_FLAGS_CPUIDLE_SLOWS_DOWN
92
? "CPU Idle slows down processor\n"
93
: "CPU Idle doesn't slow down processor\n");
92
? _("CPU Idle slows down processor\n")
93
: _("CPU Idle doesn't slow down processor\n"));
94
94
grub_xputs (info.flags & GRUB_APM_FLAGS_DISABLED
95
? "APM disabled\n" : "APM enabled\n");
95
? _("APM disabled\n") : _("APM enabled\n"));
96
96
grub_xputs (info.flags & GRUB_APM_FLAGS_DISENGAGED
97
? "APM disengaged\n" : "APM engaged\n");
97
? _("APM disengaged\n") : _("APM engaged\n"));
99
99
return GRUB_ERR_NONE;