[gnome-disk-utility/new-ui] Use "Location" instead of "Port Number" to convey the location of the disk
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/new-ui] Use "Location" instead of "Port Number" to convey the location of the disk
- Date: Sun, 29 Nov 2009 17:29:40 +0000 (UTC)
commit 32ceae70b94f74f3c06e66f10ae759c5ec28a43d
Author: David Zeuthen <davidz redhat com>
Date: Sun Nov 29 12:27:42 2009 -0500
Use "Location" instead of "Port Number" to convey the location of the disk
Also use the string "Port %d of Host Adapter" for disks connected
directly to the HBA. Once we add support for expanders and enclosures
we can use strings like "Port %d of SAS Expander" and "Bay 4 of
Enclosure".
src/palimpsest/gdu-section-drive.c | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/src/palimpsest/gdu-section-drive.c b/src/palimpsest/gdu-section-drive.c
index 42226cd..fa011b9 100644
--- a/src/palimpsest/gdu-section-drive.c
+++ b/src/palimpsest/gdu-section-drive.c
@@ -36,7 +36,7 @@ struct _GduSectionDrivePrivate
GduDetailsElement *firmware_element;
GduDetailsElement *serial_element;
GduDetailsElement *wwn_element;
- GduDetailsElement *port_number_element;
+ GduDetailsElement *location_element;
GduDetailsElement *device_element;
GduDetailsElement *write_cache_element;
GduDetailsElement *rotation_rate_element;
@@ -141,15 +141,18 @@ gdu_section_drive_update (GduSection *_section)
port_number = gdu_port_get_number (port);
if (port_number >= 0) {
- /* Start at 1 */
- s = g_strdup_printf ("%d", port_number + 1);
- gdu_details_element_set_text (section->priv->port_number_element, s);
+ /* Translators: This is used in the "Location" element for a disk
+ * directly connected to the Host Adapter (aka HBA) - port numbers
+ * start at 1
+ */
+ s = g_strdup_printf (_("Port %d of Host Adapter"), port_number + 1);
+ gdu_details_element_set_text (section->priv->location_element, s);
g_free (s);
} else {
- gdu_details_element_set_text (section->priv->port_number_element, "â??");
+ gdu_details_element_set_text (section->priv->location_element, "â??");
}
} else {
- gdu_details_element_set_text (section->priv->port_number_element, "â??");
+ gdu_details_element_set_text (section->priv->location_element, "â??");
}
gdu_details_element_set_text (section->priv->device_element, gdu_device_get_device_file (d));
@@ -624,9 +627,9 @@ gdu_section_drive_constructed (GObject *object)
g_ptr_array_add (elements, element);
section->priv->wwn_element = element;
- element = gdu_details_element_new (_("Port Number:"), NULL, NULL);
+ element = gdu_details_element_new (_("Location:"), NULL, NULL);
g_ptr_array_add (elements, element);
- section->priv->port_number_element = element;
+ section->priv->location_element = element;
element = gdu_details_element_new (_("Device:"), NULL, NULL);
g_ptr_array_add (elements, element);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]