[gnome-disk-utility] Fix another string issue



commit 8cfcf4e9c20ffdccdca7a950569f40bb3ecaf2c7
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 5 12:19:49 2009 -0400

    Fix another string issue
    
    Don't use macros in translated strings, since xgettext does not grok that.
    Bug 593718, patch by Claude Paroz.

 src/gdu-gtk/gdu-ata-smart-dialog.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-ata-smart-dialog.c b/src/gdu-gtk/gdu-ata-smart-dialog.c
index 3dd6698..6af8b7b 100644
--- a/src/gdu-gtk/gdu-ata-smart-dialog.c
+++ b/src/gdu-gtk/gdu-ata-smart-dialog.c
@@ -2145,9 +2145,12 @@ pretty_to_string (uint64_t              pretty_value,
                          * for a time-based unit that exceed one second */
                         ret = g_strdup_printf (_("%.1f seconds"), pretty_value / 1000.0);
                 } else {
+                        gchar *msec_str;
+                        msec_str = g_strdup_printf ("%" G_GUINT64_FORMAT, pretty_value);
                         /* Translators: Used in the treeview for the pretty/interpreted value of an attribute
                          * for a time-based unit that is counted in milliseconds */
-                        ret = g_strdup_printf (_("%" G_GUINT64_FORMAT " msec"), pretty_value);
+                        ret = g_strdup_printf (_("%s msec"), msec_str);
+                        g_free (msec_str);
                 }
                 break;
 



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