diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2015-09-18 09:13:24 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-09-18 09:17:53 +0800 |
commit | 77108275fe6c5cefa1b7d330a3acf48c12275230 (patch) | |
tree | 2e77edbd3de4a184a355fb7d2fe0e7f0ff430209 /discover | |
parent | b08a0b71e854fa3ec0ca763a959c79b4809dd1df (diff) | |
download | petitboot-77108275fe6c5cefa1b7d330a3acf48c12275230.zip petitboot-77108275fe6c5cefa1b7d330a3acf48c12275230.tar.gz |
discover: Add translation comments for status messages
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r-- | discover/device-handler.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c index 69665fa..9868e51 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -862,6 +862,12 @@ int device_handler_discover(struct device_handler *handler, status = talloc_zero(handler, struct boot_status); status->type = BOOT_STATUS_INFO; + /* + * TRANSLATORS: this string will be passed the type and identifier + * of the device. For example, the first parameter could be "Disk", + * (which will be translated accordingly) and the second a Linux device + * identifier like 'sda1' (which will not be translated) + */ status->message = talloc_asprintf(status, _("Processing %s device %s"), device_type_display_name(dev->device->type), dev->device->id); @@ -887,6 +893,10 @@ int device_handler_discover(struct device_handler *handler, device_handler_discover_context_commit(handler, ctx); out: + /* + * TRANSLATORS: the format specifier in this string is a Linux + * device identifier, like 'sda1' + */ status->message = talloc_asprintf(status,_("Processing %s complete\n"), dev->device->id); boot_status(handler, status); @@ -906,6 +916,10 @@ int device_handler_dhcp(struct device_handler *handler, status = talloc_zero(handler, struct boot_status); status->type = BOOT_STATUS_INFO; + /* + * TRANSLATORS: this format specifier will be the name of a network + * device, like 'eth0'. + */ status->message = talloc_asprintf(status, _("Processing dhcp event on %s"), dev->device->id); boot_status(handler, status); @@ -918,6 +932,10 @@ int device_handler_dhcp(struct device_handler *handler, device_handler_discover_context_commit(handler, ctx); + /* + * TRANSLATORS: this format specifier will be the name of a network + * device, like 'eth0'. + */ status->message = talloc_asprintf(status,_("Processing %s complete\n"), dev->device->id); boot_status(handler, status); |