gvfs r1717 - in branches/gnome-2-22: . hal
- From: sbacher svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1717 - in branches/gnome-2-22: . hal
- Date: Tue, 1 Apr 2008 17:21:00 +0100 (BST)
Author: sbacher
Date: Tue Apr 1 17:21:00 2008
New Revision: 1717
URL: http://svn.gnome.org/viewvc/gvfs?rev=1717&view=rev
Log:
* hal/ghalmount.c: (format_size_for_display), (do_update_from_hal):
Use consistent translatable strings for mounts and volume (#525286)
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/hal/ghalmount.c
Modified: branches/gnome-2-22/hal/ghalmount.c
==============================================================================
--- branches/gnome-2-22/hal/ghalmount.c (original)
+++ branches/gnome-2-22/hal/ghalmount.c Tue Apr 1 17:21:00 2008
@@ -365,17 +365,17 @@
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;
@@ -500,7 +500,14 @@
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]