[gnome-disk-utility/new-ui] Update translator comments



commit ca959729c2e8a77106f71138face36204a477adc
Author: David Zeuthen <davidz redhat com>
Date:   Wed Dec 2 14:25:59 2009 -0500

    Update translator comments

 src/gdu-gtk/gdu-add-component-linux-md-dialog.c |    3 +++
 src/gdu-gtk/gdu-confirmation-dialog.c           |    2 +-
 src/gdu-gtk/gdu-drive-benchmark-dialog.c        |   10 +++++++---
 src/gdu-gtk/gdu-edit-linux-md-dialog.c          |    4 ++--
 src/gdu-gtk/gdu-edit-partition-dialog.c         |    3 +++
 src/gdu-gtk/gdu-error-dialog.c                  |    3 +--
 src/gdu-gtk/gdu-format-dialog.c                 |    5 ++++-
 src/gdu-gtk/gdu-volume-grid.c                   |    6 ++++++
 src/gdu/gdu-hub.c                               |   12 ++++++------
 src/palimpsest/gdu-section-drive.c              |   19 +++++++++++--------
 src/palimpsest/gdu-section-hub.c                |   10 +++++-----
 11 files changed, 49 insertions(+), 28 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-add-component-linux-md-dialog.c b/src/gdu-gtk/gdu-add-component-linux-md-dialog.c
index adcb540..8bf8db9 100644
--- a/src/gdu-gtk/gdu-add-component-linux-md-dialog.c
+++ b/src/gdu-gtk/gdu-add-component-linux-md-dialog.c
@@ -181,6 +181,9 @@ gdu_add_component_linux_md_dialog_constructed (GObject *object)
         gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
         gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
         gtk_label_set_width_chars (GTK_LABEL (label), 70); /* TODO: hate */
+        /* Translators: The first %s is the size (e.g. "42 GB") and the two following %s are the
+         * name and vpd_name of the array (e.g. "Saturn" and "6 TB RAID-6")
+         */
         s = g_strdup_printf (_("Select a disk to create a %s component on for the RAID Array \"%s\" (%s)"),
                              component_size_str,
                              array_name,
diff --git a/src/gdu-gtk/gdu-confirmation-dialog.c b/src/gdu-gtk/gdu-confirmation-dialog.c
index ae98f85..ff303bf 100644
--- a/src/gdu-gtk/gdu-confirmation-dialog.c
+++ b/src/gdu-gtk/gdu-confirmation-dialog.c
@@ -126,7 +126,7 @@ gdu_confirmation_dialog_constructed (GObject *object)
         name = NULL;
         vpd_name = NULL;
 
-        gtk_window_set_title (GTK_WINDOW (dialog), _(""));
+        gtk_window_set_title (GTK_WINDOW (dialog), "");
         gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
         gtk_container_set_border_width (GTK_CONTAINER (dialog), 12);
 
diff --git a/src/gdu-gtk/gdu-drive-benchmark-dialog.c b/src/gdu-gtk/gdu-drive-benchmark-dialog.c
index b9646c3..de6aebe 100644
--- a/src/gdu-gtk/gdu-drive-benchmark-dialog.c
+++ b/src/gdu-gtk/gdu-drive-benchmark-dialog.c
@@ -677,7 +677,8 @@ gdu_drive_benchmark_dialog_constructed (GObject *object)
         vpd_name = gdu_presentable_get_vpd_name (gdu_dialog_get_presentable (GDU_DIALOG (dialog)));
         /* Translators: The title of the benchmark dialog.
          * First %s is the name for the drive (e.g. "Fedora" or "1.0 TB Hard Disk")
-         * Second %s is the VPD name for the array (e.g. "158 GB RAID-0 Array" or "ATA WDC WD1001FALS-00J7B1").
+         * Second %s is the VPD name for the drive or array (e.g. "158 GB RAID-0 Array"
+         * or "ATA WDC WD1001FALS-00J7B1").
          */
         s = g_strdup_printf (_("%s (%s) â?? Benchmark"), name, vpd_name);
         gtk_window_set_title (GTK_WINDOW (dialog), s);
@@ -944,11 +945,13 @@ on_drawing_area_expose_event (GtkWidget      *widget,
                 gdouble val;
 
                 val = n * speed_res;
-                s = g_strdup_printf ("%d MB/s", (gint) (val / (1000 * 1000)));
+                /* Translators: This is used in the benchmark graph - %d is megabytes per second */
+                s = g_strdup_printf (_("%d MB/s"), (gint) (val / (1000 * 1000)));
                 g_ptr_array_add (p, s);
 
                 val = n * time_res;
-                s = g_strdup_printf ("%3g ms", val * 1000.0);
+                /* Translators: This is used in the benchmark graph - %g is number of milliseconds */
+                s = g_strdup_printf (_("%3g ms"), val * 1000.0);
                 g_ptr_array_add (p2, s);
         }
         g_ptr_array_add (p, NULL);
@@ -1277,6 +1280,7 @@ update_dialog (GduDriveBenchmarkDialog *dialog)
                         gdu_details_element_set_text (dialog->priv->write_max_element, "â??");
                         gdu_details_element_set_text (dialog->priv->write_avg_element, "â??");
                 }
+                /* Translators: This is used in the benchmark table - %f is number of milliseconds */
                 s = g_strdup_printf ("%.1f ms", access_avg * 1000.0);
                 gdu_details_element_set_text (dialog->priv->access_avg_element, s);
                 g_free (s);
diff --git a/src/gdu-gtk/gdu-edit-linux-md-dialog.c b/src/gdu-gtk/gdu-edit-linux-md-dialog.c
index 3011e31..e2106f7 100644
--- a/src/gdu-gtk/gdu-edit-linux-md-dialog.c
+++ b/src/gdu-gtk/gdu-edit-linux-md-dialog.c
@@ -822,8 +822,8 @@ update_details (GduEditLinuxMdDialog *dialog)
                 g_free (s);
                 g_object_unref (icon);
         } else {
-                gdu_details_element_set_text (dialog->priv->component_smart_element,
-                                              _("Not Supported"));
+                /* Translators: Used when SMART is not supported on the RAID component */
+                gdu_details_element_set_text (dialog->priv->component_smart_element, _("Not Supported"));
                 icon = g_themed_icon_new ("gdu-smart-unknown");
                 gdu_details_element_set_icon (dialog->priv->component_smart_element, icon);
                 g_object_unref (icon);
diff --git a/src/gdu-gtk/gdu-edit-partition-dialog.c b/src/gdu-gtk/gdu-edit-partition-dialog.c
index 5e88891..18e3c0b 100644
--- a/src/gdu-gtk/gdu-edit-partition-dialog.c
+++ b/src/gdu-gtk/gdu-edit-partition-dialog.c
@@ -293,6 +293,9 @@ gdu_edit_partition_dialog_constructed (GObject *object)
         drive = gdu_pool_get_drive_by_device (pool, drive_device);
 
         s2 = gdu_presentable_get_vpd_name (gdu_dialog_get_presentable (GDU_DIALOG (dialog)));
+        /* Translators: title of the dialog - first %s is the name of the volume
+         * e.g. "Partition 1 of ATA INTEL SSDSA2MH080G1GC"
+         */
         s = g_strdup_printf (_("Edit %s"), s2);
         gtk_window_set_title (GTK_WINDOW (dialog), s);
         g_free (s);
diff --git a/src/gdu-gtk/gdu-error-dialog.c b/src/gdu-gtk/gdu-error-dialog.c
index 9c76668..6c5993a 100644
--- a/src/gdu-gtk/gdu-error-dialog.c
+++ b/src/gdu-gtk/gdu-error-dialog.c
@@ -244,8 +244,7 @@ gdu_error_dialog_constructed (GObject *object)
 
         name = gdu_presentable_get_name (gdu_dialog_get_presentable (GDU_DIALOG (dialog)));
         vpd_name = gdu_presentable_get_vpd_name (gdu_dialog_get_presentable (GDU_DIALOG (dialog)));
-        s = g_strdup_printf (_("An error occured while performing an operation "
-                               "on \"%s\" (%s): %s"),
+        s = g_strdup_printf (_("An error occured while performing an operation on \"%s\" (%s): %s"),
                              name,
                              vpd_name,
                              error_msg);
diff --git a/src/gdu-gtk/gdu-format-dialog.c b/src/gdu-gtk/gdu-format-dialog.c
index c9ad5ac..11fe19e 100644
--- a/src/gdu-gtk/gdu-format-dialog.c
+++ b/src/gdu-gtk/gdu-format-dialog.c
@@ -513,6 +513,7 @@ gdu_format_dialog_constructed (GObject *object)
                 gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog))),
                                                     button,
                                                     TRUE);
+                /* Translators: this is the tooltip for the "Disk Utility" button */
                 gtk_widget_set_tooltip_text (button, _("Use Disk Utility to format volume"));
         }
         gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
@@ -607,7 +608,9 @@ gdu_format_dialog_constructed (GObject *object)
         gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row + 1,
                           GTK_FILL, GTK_EXPAND | GTK_FILL, 2, 2);
         entry = gtk_entry_new ();
-        /* Translators: Keep length of translation of "New Volume" to less than 16 characters */
+        /* Translators: Default name to use for the formatted volume. Keep length of
+         * translation of "New Volume" to less than 16 characters.
+         */
         gtk_entry_set_text (GTK_ENTRY (entry), _("New Volume"));
         gtk_table_attach (GTK_TABLE (table), entry, 1, 2, row, row + 1,
                           GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 2, 2);
diff --git a/src/gdu-gtk/gdu-volume-grid.c b/src/gdu-gtk/gdu-volume-grid.c
index 1d30473..84a773c 100644
--- a/src/gdu-gtk/gdu-volume-grid.c
+++ b/src/gdu-gtk/gdu-volume-grid.c
@@ -1175,8 +1175,10 @@ render_element (GduVolumeGrid *grid,
                 const gchar *text;
 
                 if (GDU_IS_LINUX_MD_DRIVE (grid->priv->drive)) {
+                        /* Translators: This is shown in the grid for a RAID array that is not running */
                         text = _("RAID Array is not running");
                 } else {
+                        /* Translators: This is shown in the grid for a drive when no media has been detected */
                         text = _("No Media Detected");
                 }
 
@@ -1249,11 +1251,13 @@ render_element (GduVolumeGrid *grid,
                            (g_strcmp0 (gdu_device_partition_get_type (d), "0x05") == 0 ||
                             g_strcmp0 (gdu_device_partition_get_type (d), "0x0f") == 0 ||
                             g_strcmp0 (gdu_device_partition_get_type (d), "0x85") == 0)) {
+                        /* Translators: shown in the grid for an extended MS-DOS partition */
                         s = g_strdup (_("Extended"));
                         s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->presentable),
                                                             FALSE,
                                                             FALSE);
                 } else if (d != NULL && g_strcmp0 (gdu_device_id_get_usage (d), "crypto") == 0) {
+                        /* Translators: shown in the grid for an encrypted LUKS volume */
                         s = g_strdup (_("Encrypted"));
                         s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->presentable),
                                                             FALSE,
@@ -1267,11 +1271,13 @@ render_element (GduVolumeGrid *grid,
                            gdu_device_is_linux_md_component (d)) {
                         s1 = g_strdup (gdu_device_linux_md_component_get_name (d));
                 } else if (!gdu_presentable_is_allocated (element->presentable)) {
+                        /* Translators: shown in the grid for space that is not claimed by any partition */
                         s = g_strdup (_("Free"));
                         s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->presentable),
                                                             FALSE,
                                                             FALSE);
                 } else if (!gdu_presentable_is_recognized (element->presentable)) {
+                        /* Translators: shown in the grid when we don't know the purpose/usage of the partition */
                         s = g_strdup (_("Unknown"));
                         s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->presentable),
                                                             FALSE,
diff --git a/src/gdu/gdu-hub.c b/src/gdu/gdu-hub.c
index df3df41..ce3af4b 100644
--- a/src/gdu/gdu-hub.c
+++ b/src/gdu/gdu-hub.c
@@ -188,17 +188,17 @@ gdu_hub_get_name (GduPresentable *presentable)
                 fabric = gdu_adapter_get_fabric (hub->priv->adapter);
 
                 if (g_str_has_prefix (fabric, "ata_pata")) {
-                        ret = g_strdup ("PATA Host Adapter");
+                        ret = g_strdup (_("PATA Host Adapter"));
                 } else if (g_str_has_prefix (fabric, "ata_sata")) {
-                        ret = g_strdup ("SATA Host Adapter");
+                        ret = g_strdup (_("SATA Host Adapter"));
                 } else if (g_str_has_prefix (fabric, "ata")) {
-                        ret = g_strdup ("ATA Host Adapter");
+                        ret = g_strdup (_("ATA Host Adapter"));
                 } else if (g_str_has_prefix (fabric, "scsi_sas")) {
-                        ret = g_strdup ("SAS Host Adapter");
+                        ret = g_strdup (_("SAS Host Adapter"));
                 } else if (g_str_has_prefix (fabric, "scsi")) {
-                        ret = g_strdup ("SCSI Host Adapter");
+                        ret = g_strdup (_("SCSI Host Adapter"));
                 } else {
-                        ret = g_strdup ("Host Adapter");
+                        ret = g_strdup (_("Host Adapter"));
                 }
 
         } else {
diff --git a/src/palimpsest/gdu-section-drive.c b/src/palimpsest/gdu-section-drive.c
index 6114173..b25ac73 100644
--- a/src/palimpsest/gdu-section-drive.c
+++ b/src/palimpsest/gdu-section-drive.c
@@ -160,13 +160,15 @@ gdu_section_drive_update (GduSection *_section)
                                 if (g_strcmp0 (fabric, "scsi_sas") == 0) {
                                         /* Translators: This is used in the "Location" element for a disk
                                          * connected to a SAS Adapter or Expander - The %d is the
-                                         * PHY number (starts at 1) and the %s is the Adapter/Expander name.
+                                         * PHY number (starts at 1) and the %s is the Adapter/Expander
+                                         * name (e.g. "SAS Host Adapter").
                                          */
                                         s = g_strdup_printf (_("PHY %d of %s"), port_number + 1, hub_name);
                                 } else {
                                         /* Translators: This is used in the "Location" element for a disk
                                          * connected to a Adapter or Expander - The %d is the
-                                         * PHY number (starts at 1) and the %s is the Adapter/Expander name.
+                                         * PHY number (starts at 1) and the %s is the Adapter/Expander
+                                         * name (e.g. "SATA Host Adapter").
                                          */
                                         s = g_strdup_printf (_("Port %d of %s"), port_number + 1, hub_name);
                                 }
@@ -235,7 +237,10 @@ gdu_section_drive_update (GduSection *_section)
 
         if (is_rotational) {
                 if (rotation_rate > 0) {
-                        s = g_strdup_printf (_("%d RPM"), rotation_rate);
+                        /* Translators: This is for the rotation rate of a hard
+                         * disk - RPM means rounds per minute
+                         */
+                        s = g_strdup_printf (C_("Rotation Rate", "%d RPM"), rotation_rate);
                         gdu_details_element_set_text (section->priv->rotation_rate_element, s);
                         g_free (s);
                 } else {
@@ -290,8 +295,8 @@ gdu_section_drive_update (GduSection *_section)
                 g_free (s);
                 g_object_unref (icon);
         } else {
-                gdu_details_element_set_text (section->priv->smart_element,
-                                              _("Not Supported"));
+                /* Translators: This string is used when SMART is not supported */
+                gdu_details_element_set_text (section->priv->smart_element, _("Not Supported"));
                 icon = g_themed_icon_new ("gdu-smart-unknown");
                 gdu_details_element_set_icon (section->priv->smart_element, icon);
                 g_object_unref (icon);
@@ -305,8 +310,7 @@ gdu_section_drive_update (GduSection *_section)
                 g_free (s);
                 show_benchmark_button = TRUE;
         } else {
-                gdu_details_element_set_text (section->priv->capacity_element,
-                                              _("No Media Detected"));
+                gdu_details_element_set_text (section->priv->capacity_element, _("No Media Detected"));
         }
 
         s = gdu_util_get_connection_for_display (gdu_device_drive_get_connection_interface (d),
@@ -343,7 +347,6 @@ gdu_section_drive_update (GduSection *_section)
         gdu_button_element_set_visible (section->priv->smart_button, show_smart_button);
         gdu_button_element_set_visible (section->priv->benchmark_button, show_benchmark_button);
 
-
         if (d != NULL)
                 g_object_unref (d);
 }
diff --git a/src/palimpsest/gdu-section-hub.c b/src/palimpsest/gdu-section-hub.c
index 82b2ac0..ad6fa1f 100644
--- a/src/palimpsest/gdu-section-hub.c
+++ b/src/palimpsest/gdu-section-hub.c
@@ -128,15 +128,15 @@ gdu_section_hub_update (GduSection *_section)
         }
 
         if (g_str_has_prefix (fabric, "ata_pata")) {
-                fabric_str = g_strdup ("Parallel ATA");
+                fabric_str = g_strdup (_("Parallel ATA"));
         } else if (g_str_has_prefix (fabric, "ata_sata")) {
-                fabric_str = g_strdup ("Serial ATA");
+                fabric_str = g_strdup (_("Serial ATA"));
         } else if (g_str_has_prefix (fabric, "ata")) {
-                fabric_str = g_strdup ("ATA");
+                fabric_str = g_strdup (_("ATA"));
         } else if (g_str_has_prefix (fabric, "scsi_sas")) {
-                fabric_str = g_strdup ("Serial Attached SCSI");
+                fabric_str = g_strdup (_("Serial Attached SCSI"));
         } else if (g_str_has_prefix (fabric, "scsi")) {
-                fabric_str = g_strdup ("SCSI");
+                fabric_str = g_strdup (_("SCSI"));
         } else {
                 fabric_str = g_strdup ("â??");
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]