aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorBenoît Dejean <benoit@placenet.org>2006-07-18 18:29:46 +0800
committerAndre Klapper <aklapper@src.gnome.org>2006-07-18 18:29:46 +0800
commit97f95e328d2b58266ad35847f5b066cf04f49e52 (patch)
tree2876852ed78b7c3488be970ba6ccba69a05da447 /widgets/table
parent9b1edd91d3d3e0071cb678841504f771550e85ba (diff)
downloadgsoc2013-evolution-97f95e328d2b58266ad35847f5b066cf04f49e52.tar
gsoc2013-evolution-97f95e328d2b58266ad35847f5b066cf04f49e52.tar.gz
gsoc2013-evolution-97f95e328d2b58266ad35847f5b066cf04f49e52.tar.bz2
gsoc2013-evolution-97f95e328d2b58266ad35847f5b066cf04f49e52.tar.lz
gsoc2013-evolution-97f95e328d2b58266ad35847f5b066cf04f49e52.tar.xz
gsoc2013-evolution-97f95e328d2b58266ad35847f5b066cf04f49e52.tar.zst
gsoc2013-evolution-97f95e328d2b58266ad35847f5b066cf04f49e52.zip
** Fixes bug #333041 add gettext support to some strings.
2006-07-18 Benoît Dejean <benoit@placenet.org> ** Fixes bug #333041 * e-table-group-container.c: add gettext support to some strings. svn path=/trunk/; revision=32338
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/ChangeLog5
-rw-r--r--widgets/table/e-table-group-container.c12
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);
}