~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to grub-core/commands/i386/pc/lsapm.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-09-13 18:02:04 UTC
  • mfrom: (1.17.15 upstream)
  • mto: (17.6.27 experimental)
  • mto: This revision was merged to the branch mainline in revision 145.
  • Revision ID: package-import@ubuntu.com-20120913180204-mojnmocbimlom4im
Tags: upstream-2.00
ImportĀ upstreamĀ versionĀ 2.00

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
{
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"));
76
76
 
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"));
98
98
 
99
99
  return GRUB_ERR_NONE;
100
100
}