aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/calendar/ea-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'a11y/calendar/ea-week-view.c')
-rw-r--r--a11y/calendar/ea-week-view.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/a11y/calendar/ea-week-view.c b/a11y/calendar/ea-week-view.c
index 1dd137912b..26c0fe62c1 100644
--- a/a11y/calendar/ea-week-view.c
+++ b/a11y/calendar/ea-week-view.c
@@ -144,12 +144,8 @@ ea_week_view_get_name (AtkObject *accessible)
n_events = atk_object_get_n_accessible_children (accessible);
/* the child main item is always there */
--n_events;
- if (n_events == 1)
- g_snprintf (buffer, sizeof (buffer),
- _(", %d event"), n_events);
- if (n_events > 1)
- g_snprintf (buffer, sizeof (buffer),
- _(", %d events"), n_events);
+ if (n_events >= 1)
+ g_snprintf (buffer, sizeof (buffer), ngettext ( _(", %d event"), _(", %d events"), n_events), n_events);
view_type = gnome_calendar_get_view (gcal);