From eb39be7f60fe8c8df735d3f5baa01ac80233a1eb Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 14 Sep 2011 16:25:18 +0200 Subject: [PATCH] Display according text for itip invitations not directly addressed to the current user (#384) --- plugins/calendar/calendar.php | 8 +++++--- plugins/calendar/localization/de_CH.inc | 1 + plugins/calendar/localization/de_DE.inc | 1 + plugins/calendar/localization/en_US.inc | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index ced4f451..82410df1 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -678,10 +678,12 @@ class calendar extends rcube_plugin } } } - if ($status == 'unknown') - $action = 'import'; - if (in_array($status, array('ACCEPTED','TENTATIVE','DECLINED'))) { + if ($status == 'unknown') { + $html = html::div('rsvp-status', $this->gettext('notanattendee')); + $action = 'import'; + } + else if (in_array($status, array('ACCEPTED','TENTATIVE','DECLINED'))) { $html = html::div('rsvp-status ' . strtolower($status), $this->gettext('youhave'.strtolower($status))); if ($existing['changed'] && $event['changed'] < $existing['changed']) { $action = ''; diff --git a/plugins/calendar/localization/de_CH.inc b/plugins/calendar/localization/de_CH.inc index c8769a96..05db20f2 100644 --- a/plugins/calendar/localization/de_CH.inc +++ b/plugins/calendar/localization/de_CH.inc @@ -164,6 +164,7 @@ $labels['acceptinvitation'] = 'Möchten Sie die Einladung zu diesem Termin anneh $labels['youhaveaccepted'] = 'Sie haben die Einladung angenommen'; $labels['youhavetentative'] = 'Sie haben die Einladung mit Vorbehalt angenommen'; $labels['youhavedeclined'] = 'Sie haben die Einladung abgelehnt'; +$labels['notanattendee'] = 'Sie sind nicht in der Liste der Teilnehmer aufgeführt'; $labels['eventcancelled'] = 'Der Termin wurde vom Organisator abgesagt'; // event dialog tabs diff --git a/plugins/calendar/localization/de_DE.inc b/plugins/calendar/localization/de_DE.inc index 7e503ee8..4bc2e08d 100644 --- a/plugins/calendar/localization/de_DE.inc +++ b/plugins/calendar/localization/de_DE.inc @@ -164,6 +164,7 @@ $labels['acceptinvitation'] = 'Möchten Sie die Einladung zu diesem Termin anneh $labels['youhaveaccepted'] = 'Sie haben die Einladung angenommen'; $labels['youhavetentative'] = 'Sie haben die Einladung mit Vorbehalt angenommen'; $labels['youhavedeclined'] = 'Sie haben die Einladung abgelehnt'; +$labels['notanattendee'] = 'Sie sind nicht in der Liste der Teilnehmer aufgeführt'; $labels['eventcancelled'] = 'Der Termin wurde vom Organisator abgesagt'; // event dialog tabs diff --git a/plugins/calendar/localization/en_US.inc b/plugins/calendar/localization/en_US.inc index 3038b606..e25eb239 100644 --- a/plugins/calendar/localization/en_US.inc +++ b/plugins/calendar/localization/en_US.inc @@ -164,6 +164,7 @@ $labels['acceptinvitation'] = 'Do you accept this invitation?'; $labels['youhaveaccepted'] = 'You have accepted this invitation'; $labels['youhavetentative'] = 'You have tentatively accepted this invitation'; $labels['youhavedeclined'] = 'You have declined this invitation'; +$labels['notanattendee'] = 'You\'re not listed as an attendde of this event'; $labels['eventcancelled'] = 'The event has been cancelled'; // event dialog tabs