ui/ncurses: Fix unstranslated strings in sysinfo screen
authorJeremy Kerr <jk@ozlabs.org>
Fri, 19 Sep 2014 01:07:36 +0000 (09:07 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 19 Sep 2014 01:07:36 +0000 (09:07 +0800)
We have a couple of strings that are missing the gettext call.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-sysinfo.c

index f79301019da3dd2da228fd5b403a9c9f515e2178..bde8b331ce2b05fbe9ced376f5736fd31a78226f 100644 (file)
@@ -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);
        }