struct text_screen text_scr;
};
-extern const char *sysinfo_help_text;
+extern const struct help_text sysinfo_help_text;
struct nc_scr *sysinfo_screen_scr(struct sysinfo_screen *screen)
{
if (sysinfo->n_interfaces) {
line(NULL);
- line("Network interfaces");
+ line(_("Network interfaces"));
}
for (i = 0; i < sysinfo->n_interfaces; i++) {
line("%s:", info->name);
line(_(" MAC: %s"), macbuf);
- line(_(" link: %s"), info->link ? "up" : "down");
+ /* TRANSLATORS: these "up" / "down" strings refer to the
+ * link status for a network connection. */
+ line(_(" link: %s"), info->link ? _("up") : _("down"));
line(NULL);
}
text_screen_init(&screen->text_scr, cui,
_("Petitboot System Information"), on_exit);
text_screen_set_help(&screen->text_scr,
- _("System Information"), sysinfo_help_text);
+ _("System Information"), &sysinfo_help_text);
sysinfo_screen_update(screen, sysinfo);