summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-07-28 12:18:21 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-07-28 14:23:11 +0800
commita5dad9c05cd72820e64e0461889e9e77eaf8202d (patch)
tree65f3d490743c9300b38be5905a2cdc46216abf7e /discover/device-handler.c
parent2a44f3c936f948d6fedc4729dbf2216da558e490 (diff)
downloadtalos-petitboot-a5dad9c05cd72820e64e0461889e9e77eaf8202d.tar.gz
talos-petitboot-a5dad9c05cd72820e64e0461889e9e77eaf8202d.zip
discover: Use translated strings for boot status messages
Since we're operating in the correct locale now, we can send translated strings in the boot status messages. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index e7990e7..5a5210e 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -384,7 +384,7 @@ static void countdown_status(struct device_handler *handler,
status.progress = -1;
status.detail = NULL;
status.message = talloc_asprintf(handler,
- "Booting in %d sec: %s", sec, opt->option->name);
+ _("Booting in %d sec: %s"), sec, opt->option->name);
discover_server_notify_boot_status(handler->server, &status);
@@ -812,7 +812,7 @@ void device_handler_cancel_default(struct device_handler *handler)
status.type = BOOT_STATUS_INFO;
status.progress = -1;
status.detail = NULL;
- status.message = "Default boot cancelled";
+ status.message = _("Default boot cancelled");
discover_server_notify_boot_status(handler->server, &status);
}
OpenPOWER on IntegriCloud