From 6f37596c495c9f62b911890478fbdc7623239983 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 2 Apr 2010 12:28:52 +0200 Subject: Bug #325616 - Remove whitespace, add translator comments --- widgets/table/e-table-group-container.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index 1f06f06e3c..e99270bd4b 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -339,12 +339,25 @@ compute_text (ETableGroupContainer *etgc, ETableGroupContainerChildNode *child_n gchar *text; if (etgc->ecol->text) { - text = g_strdup_printf (ngettext("%s : %s (%d item)", - "%s : %s (%d items)", + /* Translators: This text is used as a special row when an ETable + has turned on grouping on a column, which has set a title. + The first %s is replaced with a column title. + The second %s is replaced with an actual group value. + Finally the %d is replaced with count of items in this group. + Example: "Family name: Smith (13 items)" + */ + text = g_strdup_printf (ngettext("%s: %s (%d item)", + "%s: %s (%d items)", child_node->count), etgc->ecol->text, child_node->string, (gint) child_node->count); } else { + /* Translators: This text is used as a special row when an ETable + has turned on grouping on a column, which doesn't have set a title. + The %s is replaced with an actual group value. + The %d is replaced with count of items in this group. + Example: "Smith (13 items)" + */ text = g_strdup_printf (ngettext("%s (%d item)", "%s (%d items)", child_node->count), -- cgit v1.2.3