]> spindle.queued.net Git - midori/commitdiff
Use ngettext to render %d days ago
authorChristian Dywan <christian@twotoasts.de>
Sun, 10 May 2009 13:39:12 +0000 (15:39 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 10 May 2009 13:42:12 +0000 (15:42 +0200)
panels/midori-history.c

index df19f9ec9cf192e57ce5d3ac67ea9592bbec3b1e..1b2ee3aeb202c93a6741073f452e92cf9dc8b1ab 100644 (file)
@@ -596,13 +596,13 @@ midori_history_treeview_render_text_cb (GtkTreeViewColumn* column,
         }
         else if (age > 6)
         {
-            sdate = g_strdup_printf (_("A week ago"));
+            sdate = _("A week ago");
             g_object_set (renderer, "text", sdate, NULL);
-            g_free (sdate);
         }
         else if (age > 1)
         {
-            sdate = g_strdup_printf (_("%d days ago"), (gint)age);
+            sdate = g_strdup_printf (ngettext (_("%d day ago"),
+                _("%d days ago"), (gint)age), (gint)age);
             g_object_set (renderer, "text", sdate, NULL);
             g_free (sdate);
         }