diff options
author | Li Yuan <li.yuan@sun.com> | 2004-09-30 15:32:36 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2004-09-30 15:32:36 +0800 |
commit | 55e921af93354f13406657f4a5d68c5e426d9402 (patch) | |
tree | c3df07c23a7b26388ec7aa2ad510e06b39189c42 /a11y/calendar/ea-day-view.c | |
parent | a575a7229795651453ffdc8809a2f642b5e4a00c (diff) | |
download | gsoc2013-evolution-55e921af93354f13406657f4a5d68c5e426d9402.tar.gz gsoc2013-evolution-55e921af93354f13406657f4a5d68c5e426d9402.tar.zst gsoc2013-evolution-55e921af93354f13406657f4a5d68c5e426d9402.zip |
Make accessibility name and description translatable.
2004-09-23 Li Yuan <li.yuan@sun.com>
* calendar/ea-cal-view-event.c: (ea_cal_view_event_get_type),
(ea_cal_view_event_get_name), (ea_cal_view_event_get_description):
Make accessibility name and description translatable.
(atk_action_interface_init), (ea_cal_view_event_do_action),
(ea_cal_view_event_get_n_actions),
(ea_cal_view_event_action_get_name):
Add action interface to ea-cal-view-event so that it can be
UI grabbed by GOK.
* calendar/ea-cal-view.c:
Make accessibility name and description translatable.
* calendar/ea-day-view-cell.c: (ea_day_view_cell_new):
Change atk role of ea-day-view-cell from ATK_ROLE_TABLE_CELL
to ATK_ROLE_UNKNOWN so that it can be UI grabbed by GOK.
(atk_component_interface_init), (component_interface_grab_focus):
Add a component interface function : grab_focus.
When grab focus, present the Evolution GUI to the front.
* calendar/ea-day-view-main-item.c:
(ea_day_view_main_item_get_description):
Make accessibility name and description translatable.
(ea_day_view_main_item_time_change_cb):
Notify the item_cell is selected.
* calendar/ea-day-view.c: (ea_day_view_get_name),
(ea_day_view_get_description):
Make accessibility name and description translatable.
* calendar/ea-gnome-calendar.c: (ea_gnome_calendar_get_name),
(ea_gnome_calendar_get_description), (ea_gnome_calendar_ref_child):
Make accessibility name and description translatable.
* calendar/ea-jump-button.c: (ea_jump_button_get_name),
(ea_jump_button_get_description):
Make accessibility name and description translatable.
* calendar/ea-week-view-cell.c: (ea_week_view_cell_get_name),
(atk_component_interface_init), (component_interface_get_extents),
(component_interface_grab_focus):
Add a component interface function : grab_focus.
Add support for different week start days.
When grab focus, present the Evolutioon GUI to the front.
* calendar/ea-week-view-main-item.c: (ea_week_view_main_item_new):
Set the atk role to ATK_ROLE_TABLE.
(ea_week_view_main_item_get_description):
Make accessibility name and description translatable.
(ea_week_view_main_item_time_change_cb):
Notify the item_cell is selected.
* calendar/ea-week-view.c: (ea_week_view_get_name),
(ea_week_view_get_description):
Make accessibility name and description translatable.
* widgets/ea-calendar-cell.c: (ea_calendar_cell_new):
Change atk role of ea-calendar-cell from ATK_ROLE_TABLE_CELL
to ATK_ROLE_UNKNOWN so that it can be UI grabbed by GOK.
* widgets/ea-calendar-item.c: (ea_calendar_item_class_init),
(ea_calendar_item_get_name), (ea_calendar_item_get_description):
Make accessibility name and description translatable.
(ea_calendar_item_ref_state_set),:
Implement ref_state_set so that ea-calendar-item can be UI
grabbed by GOK.
(ea_calendar_item_destory_cell_data):
Fix a crash here.
svn path=/trunk/; revision=27434
Diffstat (limited to 'a11y/calendar/ea-day-view.c')
-rw-r--r-- | a11y/calendar/ea-day-view.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/a11y/calendar/ea-day-view.c b/a11y/calendar/ea-day-view.c index f91583da24..7f5926e9a6 100644 --- a/a11y/calendar/ea-day-view.c +++ b/a11y/calendar/ea-day-view.c @@ -29,6 +29,7 @@ #include "ea-calendar-helpers.h" #include "calendar-commands.h" #include <glib/gstrfuncs.h> +#include <libgnome/gnome-i18n.h> static void ea_day_view_class_init (EaDayViewClass *klass); @@ -141,16 +142,19 @@ ea_day_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 > 0) + if (n_events = 1) g_snprintf (buffer, sizeof (buffer), - ", %d events", n_events); + _(", %d event"), n_events); + if (n_events > 1) + g_snprintf (buffer, sizeof (buffer), + _(", %d events"), n_events); view_type = gnome_calendar_get_view (gcal); if (view_type == GNOME_CAL_WORK_WEEK_VIEW) - accessible->name = g_strconcat ("work week view :", + accessible->name = g_strconcat (_("work week view :"), label_text, buffer, NULL); else - accessible->name = g_strconcat ("day view :", + accessible->name = g_strconcat (_("day view :"), label_text, buffer, NULL); return accessible->name; @@ -177,9 +181,9 @@ ea_day_view_get_description (AtkObject *accessible) view_type = gnome_calendar_get_view (gcal); if (view_type == GNOME_CAL_WORK_WEEK_VIEW) - return "calendar view for a work week"; + return _("calendar view for a work week"); else - return "calendar view for one or more days"; + return _("calendar view for one or more days"); } } |