diff options
author | jacob berkman <jacob@ximian.com> | 2001-05-25 02:58:04 +0800 |
---|---|---|
committer | Jacob Berkman <jberkman@src.gnome.org> | 2001-05-25 02:58:04 +0800 |
commit | c28a61bf2605c493d0d835b957a0182e2d6c8761 (patch) | |
tree | 49b1ffceb93452ee4842e110bb7066eee460966e /widgets/table/e-table-group-container.c | |
parent | cd3efd875d94048a256179987de66f8766e31a69 (diff) | |
download | gsoc2013-evolution-c28a61bf2605c493d0d835b957a0182e2d6c8761.tar.gz gsoc2013-evolution-c28a61bf2605c493d0d835b957a0182e2d6c8761.tar.zst gsoc2013-evolution-c28a61bf2605c493d0d835b957a0182e2d6c8761.zip |
format similar to nautilus
2001-05-24 jacob berkman <jacob@ximian.com>
* e-cell-size.c (ecd_get_text): format similar to nautilus
2001-05-23 jacob berkman <jacob@ximian.com>
* e-table-group-container.c: internationalize the grouping text
string
svn path=/trunk/; revision=9966
Diffstat (limited to 'widgets/table/e-table-group-container.c')
-rw-r--r-- | widgets/table/e-table-group-container.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index 5d55d17415..034c5625b8 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -12,6 +12,7 @@ #include <config.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtksignal.h> +#include <libgnome/libgnome.h> #include <libgnomeui/gnome-canvas-rect-ellipse.h> #include "e-table-group-container.h" #include "e-table-group-leaf.h" @@ -332,16 +333,18 @@ compute_text (ETableGroupContainer *etgc, ETableGroupContainerChildNode *child_n { gchar *text; if (etgc->ecol->text) - text = g_strdup_printf ("%s : %s (%d item%s)", + text = g_strdup_printf ((child_node->count == 1) + ? _("%s : %s (%d item)") + : _("%s : %s (%d items)"), etgc->ecol->text, child_node->string, - (gint) child_node->count, - child_node->count == 1 ? "" : "s"); + (gint) child_node->count); else - text = g_strdup_printf ("%s (%d item%s)", + text = g_strdup_printf ((child_node->count == 1) + ? _("%s (%d item)") + : _("%s (%d items)"), child_node->string, - (gint) child_node->count, - child_node->count == 1 ? "" : "s"); + (gint) child_node->count); gnome_canvas_item_set (child_node->text, "text", text, NULL); |