summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-09-15 16:24:24 +1000
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-09-15 16:33:02 +1000
commit203ad2cb596a4b8df13df4afdc8d7e0d999a5fd5 (patch)
tree74fc3bca357460f60d2988ae9c44270833d8c929 /discover/device-handler.c
parent5acb43464206348b7cced9508852fdd2989aea58 (diff)
downloadtalos-petitboot-203ad2cb596a4b8df13df4afdc8d7e0d999a5fd5.tar.gz
talos-petitboot-203ad2cb596a4b8df13df4afdc8d7e0d999a5fd5.zip
Fix certain calls to gettext
Properly call gettext for strings in discover/device-handler.c that are user-visible, and fix the help string in ui/ncurses/nc-subset.c Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 4e25e07..69665fa 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -862,7 +862,7 @@ int device_handler_discover(struct device_handler *handler,
status = talloc_zero(handler, struct boot_status);
status->type = BOOT_STATUS_INFO;
- status->message = talloc_asprintf(status, "Processing %s device %s",
+ status->message = talloc_asprintf(status, _("Processing %s device %s"),
device_type_display_name(dev->device->type),
dev->device->id);
boot_status(handler, status);
@@ -887,7 +887,7 @@ int device_handler_discover(struct device_handler *handler,
device_handler_discover_context_commit(handler, ctx);
out:
- status->message = talloc_asprintf(status,"Processing %s complete\n",
+ status->message = talloc_asprintf(status,_("Processing %s complete\n"),
dev->device->id);
boot_status(handler, status);
@@ -906,7 +906,7 @@ int device_handler_dhcp(struct device_handler *handler,
status = talloc_zero(handler, struct boot_status);
status->type = BOOT_STATUS_INFO;
- status->message = talloc_asprintf(status, "Processing dhcp event on %s",
+ status->message = talloc_asprintf(status, _("Processing dhcp event on %s"),
dev->device->id);
boot_status(handler, status);
@@ -918,7 +918,7 @@ int device_handler_dhcp(struct device_handler *handler,
device_handler_discover_context_commit(handler, ctx);
- status->message = talloc_asprintf(status,"Processing %s complete\n",
+ status->message = talloc_asprintf(status,_("Processing %s complete\n"),
dev->device->id);
boot_status(handler, status);
@@ -937,7 +937,7 @@ int device_handler_conf(struct device_handler *handler,
status = talloc_zero(handler, struct boot_status);
status->type = BOOT_STATUS_INFO;
- status->message = talloc_asprintf(status, "Processing user config");
+ status->message = talloc_asprintf(status, _("Processing user config"));
boot_status(handler, status);
/* create our context */
@@ -949,7 +949,7 @@ int device_handler_conf(struct device_handler *handler,
device_handler_discover_context_commit(handler, ctx);
status->message = talloc_asprintf(status,
- "Processing user config complete");
+ _("Processing user config complete"));
boot_status(handler, status);
talloc_free(status);
OpenPOWER on IntegriCloud