diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/table/e-table-group-container.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 175288199a..caa0788c3d 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,8 @@ +2006-07-18 BenoƮt Dejean <benoit@placenet.org> + + ** Fixes bug #333041 + * e-table-group-container.c: add gettext support to some strings. + 2006-06-12 simon.zheng <simon.zheng@sun.com> **Fixes bug #338295 diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index 632f998c84..86a8036450 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -342,15 +342,15 @@ compute_text (ETableGroupContainer *etgc, ETableGroupContainerChildNode *child_n gchar *text; if (etgc->ecol->text) { - text = g_strdup_printf ((child_node->count == 1) - ? _("%s : %s (%d item)") - : _("%s : %s (%d 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 { - text = g_strdup_printf ((child_node->count == 1) - ? _("%s (%d item)") - : _("%s (%d items)"), + text = g_strdup_printf (ngettext("%s (%d item)", + "%s (%d items)", + child_node->count), child_node->string, (gint) child_node->count); } |