summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover/device-handler.c18
-rw-r--r--po/en.po16
2 files changed, 33 insertions, 1 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);
diff --git a/po/en.po b/po/en.po
index db05353..1dab29f 100644
--- a/po/en.po
+++ b/po/en.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: petitboot 20140623-g89bd2ed2-dirty\n"
"Report-Msgid-Bugs-To: Geoff Levand <geoff@infradead.org>\n"
-"POT-Creation-Date: 2015-09-14 10:17+1000\n"
+"POT-Creation-Date: 2015-09-16 10:25+0800\n"
"PO-Revision-Date: 2014-06-24 13:56+0800\n"
"Last-Translator: Jeremy Kerr <jk@ozlabs.org>\n"
"Language-Team: English\n"
@@ -56,14 +56,28 @@ msgstr "Boot cancelled"
msgid "Booting in %d sec: %s"
msgstr "Booting in %d sec: %s"
+#. 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)
+#.
#, c-format
msgid "Processing %s device %s"
msgstr ""
+#. TRANSLATORS: the format specifier in this string is a Linux
+#. device identifier, like 'sda1'
+#.
+#. TRANSLATORS: this format specifier will be the name of a network
+#. device, like 'eth0'.
+#.
#, c-format
msgid "Processing %s complete\n"
msgstr ""
+#. TRANSLATORS: this format specifier will be the name of a network
+#. device, like 'eth0'.
+#.
#, c-format
msgid "Processing dhcp event on %s"
msgstr ""
OpenPOWER on IntegriCloud