aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/cancel-comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/cancel-comp.c')
-rw-r--r--calendar/gui/dialogs/cancel-comp.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/cancel-comp.c b/calendar/gui/dialogs/cancel-comp.c
index 92590cfa40..9156877016 100644
--- a/calendar/gui/dialogs/cancel-comp.c
+++ b/calendar/gui/dialogs/cancel-comp.c
@@ -42,30 +42,40 @@
* Return value: TRUE if the user clicked Yes, FALSE otherwise.
**/
gboolean
-cancel_component_dialog (CalComponent *comp)
+cancel_component_dialog (CalComponent *comp, gboolean deleting)
{
GtkWidget *dialog;
CalComponentVType vtype;
char *str;
- str = _("The meeting status has changed. Send an updated version?");
-
vtype = cal_component_get_vtype (comp);
switch (vtype) {
case CAL_COMPONENT_EVENT:
- str = g_strdup_printf (_("Are you sure you want to cancel "
- "and delete this meeting?"));
+ if (deleting)
+ str = g_strdup_printf (_("The event being deleted is a meeting, "
+ "would you like to send a cancellation notice?"));
+ else
+ str = g_strdup_printf (_("Are you sure you want to cancel "
+ "and delete this meeting?"));
break;
case CAL_COMPONENT_TODO:
- str = g_strdup_printf (_("Are you sure you want to cancel "
- "and delete this task?"));
+ if (deleting)
+ str = g_strdup_printf (_("The task being deleted is assigned, "
+ "would you like to send a cancellation notice?"));
+ else
+ str = g_strdup_printf (_("Are you sure you want to cancel "
+ "and delete this task?"));
break;
case CAL_COMPONENT_JOURNAL:
- str = g_strdup_printf (_("Are you sure you want to cancel "
- "and delete this journal entry?"));
+ if (deleting)
+ str = g_strdup_printf (_("The journal entry being deleted is published, "
+ "would you like to send a cancellation notice?"));
+ else
+ str = g_strdup_printf (_("Are you sure you want to cancel "
+ "and delete this journal entry?"));
break;
default: