summaryrefslogtreecommitdiffstats
path: root/ui/ncurses
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-08-21 10:19:09 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-08-21 10:24:09 +0800
commita58de4840edd7796c385c11a6d49ce28c724b305 (patch)
tree44e1d6cd8e32ffdbe2358a0ab9d763f077f5f393 /ui/ncurses
parent061f07717d5e46f33fce481420298f5a6d5561f2 (diff)
downloadtalos-petitboot-a58de4840edd7796c385c11a6d49ce28c724b305.tar.gz
talos-petitboot-a58de4840edd7796c385c11a6d49ce28c724b305.zip
ui/ncurses: Make device labels translateable
We're not using gettext for the device label strings; this change adds the necessary macros to do so. Also, we change "Interface" to "Network", to make the label a little more obvious. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses')
-rw-r--r--ui/ncurses/nc-menu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/ncurses/nc-menu.c b/ui/ncurses/nc-menu.c
index 666b78b..7ff2468 100644
--- a/ui/ncurses/nc-menu.c
+++ b/ui/ncurses/nc-menu.c
@@ -265,7 +265,7 @@ struct pmenu_item *pmenu_find_device(struct pmenu *menu, struct device *dev,
if (matched) {
snprintf(buf,sizeof(buf),"[%s: %s / %s]",
dev->type == DEVICE_TYPE_DISK ?
- "Disk" : "CD/DVD",
+ _("Disk") : _("CD/DVD"),
bd->name, bd->uuid);
}
break;
@@ -282,8 +282,8 @@ struct pmenu_item *pmenu_find_device(struct pmenu *menu, struct device *dev,
if (matched) {
mac_str(intf->hwaddr, intf->hwaddr_size,
hwaddr, sizeof(hwaddr));
- snprintf(buf,sizeof(buf),"[Interface %s / %s]",
- intf->name, hwaddr);
+ snprintf(buf,sizeof(buf),"[%s: %s / %s]",
+ _("Network"), intf->name, hwaddr);
}
break;
@@ -294,8 +294,8 @@ struct pmenu_item *pmenu_find_device(struct pmenu *menu, struct device *dev,
if (!matched) {
pb_debug("%s: No matching device found for %s (%s)\n",
__func__,opt->device_id, dev->id);
- snprintf(buf,sizeof(buf),"[Unknown Device: %s]",
- dev->id);
+ snprintf(buf, sizeof(buf), "[%s: %s]",
+ _("Unknown Device"), dev->id);
}
dev_hdr = pmenu_item_create(menu, buf);
OpenPOWER on IntegriCloud