X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-sysinfo.c;h=bde8b331ce2b05fbe9ced376f5736fd31a78226f;hp=0d362e481d493ce88fa6ed4ca4478855f6cc6ddb;hb=70907c3fc4b344d00ce900e6a536e9cc16a35216;hpb=494988c501287e03da3becba5c03cbce7c3d9d20;ds=sidebyside diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index 0d362e4..bde8b33 100644 --- a/ui/ncurses/nc-sysinfo.c +++ b/ui/ncurses/nc-sysinfo.c @@ -35,7 +35,7 @@ struct sysinfo_screen { 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) { @@ -80,7 +80,7 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen, if (sysinfo->n_interfaces) { line(NULL); - line("Network interfaces"); + line(_("Network interfaces")); } for (i = 0; i < sysinfo->n_interfaces; i++) { @@ -91,7 +91,9 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen, 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); } @@ -115,7 +117,7 @@ struct sysinfo_screen *sysinfo_screen_init(struct cui *cui, 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);