From 2715ec243840be8ef5afaa45f9f7bcd5041a752a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 10 May 2009 15:39:12 +0200 Subject: [PATCH] Use ngettext to render %d days ago --- panels/midori-history.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panels/midori-history.c b/panels/midori-history.c index df19f9ec..1b2ee3ae 100644 --- a/panels/midori-history.c +++ b/panels/midori-history.c @@ -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); } -- 2.39.5