[gnome-disk-utility] Add some more translator comments



commit 027a3e6b69b1a99fd97f03e22515e45fbe320aac
Author: David Zeuthen <davidz redhat com>
Date:   Tue Aug 4 13:36:41 2009 -0400

    Add some more translator comments

 src/gdu/gdu-drive.c          |   54 ++++++++++++++++++++++++++++++++++++++++-
 src/gdu/gdu-linux-md-drive.c |    6 ++++
 src/gdu/gdu-volume.c         |    1 +
 3 files changed, 59 insertions(+), 2 deletions(-)
---
diff --git a/src/gdu/gdu-drive.c b/src/gdu/gdu-drive.c
index e825355..f04c8ab 100644
--- a/src/gdu/gdu-drive.c
+++ b/src/gdu/gdu-drive.c
@@ -298,22 +298,31 @@ gdu_drive_get_name (GduPresentable *presentable)
                         media = media_compat[n];
                         media_name = NULL;
                         if (g_strcmp0 (media, "flash_cf") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("CompactFlash");
                         } else if (g_strcmp0 (media, "flash_ms") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("MemoryStick");
                         } else if (g_strcmp0 (media, "flash_sm") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("SmartMedia");
                         } else if (g_strcmp0 (media, "flash_sd") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("SecureDigital");
                         } else if (g_strcmp0 (media, "flash_sdhc") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("SD High Capcity");
                         } else if (g_strcmp0 (media, "floppy") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("Floppy");
                         } else if (g_strcmp0 (media, "floppy_zip") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("Zip");
                         } else if (g_strcmp0 (media, "floppy_jaz") == 0) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("Jaz");
                         } else if (g_str_has_prefix (media, "flash")) {
+                                /* Translators: This word is used to describe the media inserted into a device */
                                 media_name = _("Flash");
                         } else if (g_str_has_prefix (media, "optical_cd")) {
                                 optical_cd = TRUE;
@@ -334,27 +343,42 @@ gdu_drive_get_name (GduPresentable *presentable)
                 if (optical_cd) {
                         if (result->len > 0)
                                 g_string_append_c (result, '/');
+                        /* Translators: This word is used to describe the optical disc type, it may appear
+                         * in a slash-separated list e.g. 'CD/DVD/Blu-Ray'
+                         */
                         g_string_append (result, _("CD"));
                 }
                 if (optical_dvd) {
                         if (result->len > 0)
                                 g_string_append_c (result, '/');
+                        /* Translators: This word is used to describe the optical disc type, it may appear
+                         * in a slash-separated list e.g. 'CD/DVD/Blu-Ray'
+                         */
                         g_string_append (result, _("DVD"));
                 }
                 if (optical_bd) {
                         if (result->len > 0)
                                 g_string_append_c (result, '/');
+                        /* Translators: This word is used to describe the optical disc type, it may appear
+                         * in a slash-separated list e.g. 'CD/DVD/Blu-Ray'
+                         */
                         g_string_append (result, _("Blu-Ray"));
                 }
                 if (optical_hddvd) {
                         if (result->len > 0)
                                 g_string_append_c (result, '/');
+                        /* Translators: This word is used to describe the optical disc type, it may appear
+                         * in a slash-separated list e.g. 'CD/DVD/Blu-Ray'
+                         */
                         g_string_append (result, _("HDDVD"));
                 }
 
                 /* If we know the media type, just append Drive */
                 if (result->len > 0) {
                         g_string_append_c (result, ' ');
+                        /* Translators: This word is appended after the media type, e.g. 'CD/DVD Drive' or
+                         * 'CompactFlash Drive'
+                         */
                         g_string_append (result, _("Drive"));
                 } else {
                         /* Otherwise use Vendor/Model */
@@ -376,21 +400,33 @@ gdu_drive_get_name (GduPresentable *presentable)
 
                 if (is_rotational) {
                         if (strsize != NULL) {
+                                /* Translators: This string is used to describe a hard disk. The first %s is
+                                 * the size of the drive e.g. '45 GB'.
+                                 */
                                 g_string_append_printf (result,
                                                         _("%s Hard Disk"),
                                                         strsize);
                         } else {
+                                /* Translators: This string is used to describe a hard disk where the size
+                                 * is not known.
+                                 */
                                 g_string_append (result,
-                                                 _("%s Hard Disk"));
+                                                 _("Hard Disk"));
                         }
                 } else {
                         if (strsize != NULL) {
+                                /* Translators: This string is used to describe a SSD. The first %s is
+                                 * the size of the drive e.g. '45 GB'.
+                                 */
                                 g_string_append_printf (result,
                                                         _("%s Solid-State Disk"),
                                                         strsize);
                         } else {
+                                /* Translators: This string is used to describe a SSD where the size
+                                 * is not known.
+                                 */
                                 g_string_append (result,
-                                                 _("%s Solid-State Disk"));
+                                                 _("Solid-State Disk"));
                         }
                 }
         }
@@ -427,11 +463,17 @@ gdu_drive_get_description (GduPresentable *presentable)
                 if (has_media && size > 0) {
                         gchar *strsize;
                         strsize = gdu_util_get_size_for_display (size, FALSE);
+                        /* Translators: This string is the description of a drive. The first %s is the
+                         * size of the inserted media, for example '45 GB'.
+                         */
                         g_string_append_printf (result,
                                                 _("%s Media"),
                                                 strsize);
                         g_free (strsize);
                 } else {
+                        /* Translators: This string is used as a description text when no media has
+                         * been detected for a drive
+                         */
                         g_string_append_printf (result,
                                                 _("No Media Detected"));
                 }
@@ -443,19 +485,27 @@ gdu_drive_get_description (GduPresentable *presentable)
                         g_string_append (result, ", ");
                 if (gdu_device_is_partition_table (drive->priv->device)) {
                         if (g_strcmp0 (part_table_scheme, "mbr") == 0) {
+                                /* Translators: This string is used for conveying the partition table format */
                                 g_string_append (result,
                                                  _("MBR Partition Table"));
                         } else if (g_strcmp0 (part_table_scheme, "gpt") == 0) {
+                                /* Translators: This string is used for conveying the partition table format */
                                 g_string_append (result,
                                                  _("GUID Partition Table"));
                         } else if (g_strcmp0 (part_table_scheme, "apm") == 0) {
+                                /* Translators: This string is used for conveying the partition table format */
                                 g_string_append (result,
                                                  _("Apple Partition Table"));
                         } else {
+                                /* Translators: This string is used for conveying the partition table format when
+                                 * the format is unknown
+                                 */
                                 g_string_append (result,
                                                  _("Partitioned"));
                         }
                 } else {
+                        /* Translators: This string is used for conveying a device is not partitioned.
+                         */
                         g_string_append (result,
                                          _("Not Partitioned"));
                 }
diff --git a/src/gdu/gdu-linux-md-drive.c b/src/gdu/gdu-linux-md-drive.c
index f250c39..09a47ca 100644
--- a/src/gdu/gdu-linux-md-drive.c
+++ b/src/gdu/gdu-linux-md-drive.c
@@ -535,12 +535,18 @@ get_name_and_desc (GduPresentable  *presentable,
                         part_table_scheme = gdu_device_partition_table_get_scheme (drive->priv->device);
 
                         if (g_strcmp0 (part_table_scheme, "mbr") == 0) {
+                                /* Translators: This string is used for conveying the partition table format */
                                 scheme_str = _("MBR Partition Table");
                         } else if (g_strcmp0 (part_table_scheme, "gpt") == 0) {
+                                /* Translators: This string is used for conveying the partition table format */
                                 scheme_str = _("GUID Partition Table");
                         } else if (g_strcmp0 (part_table_scheme, "apm") == 0) {
+                                /* Translators: This string is used for conveying the partition table format */
                                 scheme_str = _("Apple Partition Table");
                         } else {
+                                /* Translators: This string is used for conveying the partition table format when
+                                 * the format is unknown
+                                 */
                                 scheme_str = _("Partitioned");
                         }
 
diff --git a/src/gdu/gdu-volume.c b/src/gdu/gdu-volume.c
index d0f51f1..0912356 100644
--- a/src/gdu/gdu-volume.c
+++ b/src/gdu/gdu-volume.c
@@ -375,6 +375,7 @@ get_name_and_desc (GduPresentable  *presentable,
                          * %s is the size, formatted like '45 GB'
                          */
                         result = g_strdup_printf (_("%s Unrecognized"), strsize);
+                        /* Translators: description for a volume of unrecognized use */
                         result_desc = g_strdup (_("Unknown or Unused"));
                 }
         } else {



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