Use ngettext to render %d days ago
This commit is contained in:
parent
e5276907e9
commit
2715ec2438
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue