summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Bacher <sbacher@src.gnome.org>2008-04-01 16:18:04 +0000
committerSebastien Bacher <sbacher@src.gnome.org>2008-04-01 16:18:04 +0000
commitf59acea3800ab94c2cbe7c354db39fad3da8c508 (patch)
tree3e3e08ca894822766d7d148a0f2f95b71049ac9e
parentb96808ec8b107675d37f8b129393551b1d93e8d9 (diff)
downloadgvfs-f59acea3800ab94c2cbe7c354db39fad3da8c508.tar.gz
Use consistent translatable strings for mounts and volume (#525286)
* hal/ghalmount.c: (format_size_for_display), (do_update_from_hal): Use consistent translatable strings for mounts and volume (#525286) svn path=/trunk/; revision=1716
-rw-r--r--ChangeLog5
-rw-r--r--hal/ghalmount.c15
2 files changed, 16 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a20a6838..32fab055 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-01 Sebastien Bacher <seb128@ubuntu.com>
+
+ * hal/ghalmount.c: (format_size_for_display), (do_update_from_hal):
+ Use consistent translatable strings for mounts and volume (#525286)
+
2008-03-31 Alexander Larsson <alexl@redhat.com>
* daemon/gvfsbackendsftp.c:
diff --git a/hal/ghalmount.c b/hal/ghalmount.c
index e4f77e3b..4ec31245 100644
--- a/hal/ghalmount.c
+++ b/hal/ghalmount.c
@@ -365,17 +365,17 @@ format_size_for_display (guint64 size)
if (size < MEGABYTE_FACTOR)
{
displayed_size = (double) size / KILOBYTE_FACTOR;
- str = g_strdup_printf (_("%.1f kB Media"), displayed_size);
+ str = g_strdup_printf (_("%.1f kB"), displayed_size);
}
else if (size < GIGABYTE_FACTOR)
{
displayed_size = (double) size / MEGABYTE_FACTOR;
- str = g_strdup_printf (_("%.1f MB Media"), displayed_size);
+ str = g_strdup_printf (_("%.1f MB"), displayed_size);
}
else
{
displayed_size = (double) size / GIGABYTE_FACTOR;
- str = g_strdup_printf (_("%.1f GB Media"), displayed_size);
+ str = g_strdup_printf (_("%.1f GB"), displayed_size);
}
return str;
@@ -495,7 +495,14 @@ do_update_from_hal (GHalMount *m)
name = g_strdup (get_disc_name (volume_disc_type, volume_disc_is_blank));
}
else
- name = format_size_for_display (volume_size);
+ {
+ char *size;
+
+ size = format_size_for_display (volume_size);
+ /* Translators: %s is the size of the mount (e.g. 512 MB) */
+ name = g_strdup_printf (_("%s Media"), size);
+ g_free (size);
+ }
if (m->override_name != NULL)
{