Parse and display event/task status from iTip messages
This commit is contained in:
parent
738b56cfd8
commit
232b458be4
2 changed files with 7 additions and 3 deletions
|
@ -625,7 +625,11 @@ class libcalendaring_itip
|
|||
}
|
||||
if ($event['sensitivity'] && $event['sensitivity'] != 'public') {
|
||||
$table->add('label', $this->plugin->gettext('sensitivity'), $this->domain);
|
||||
$table->add('sensitivity', ucfirst($this->plugin->gettext($event['sensitivity'])) . '!');
|
||||
$table->add('sensitivity', ucfirst($this->plugin->gettext($event['sensitivity'], $this->domain)) . '!');
|
||||
}
|
||||
if ($event['status'] == 'COMPLETED' || $event['status'] == 'CANCELLED') {
|
||||
$table->add('label', $this->plugin->gettext('status'), $this->domain);
|
||||
$table->add('status', $this->plugin->gettext('status-' . strtolower($event['status']), $this->domain));
|
||||
}
|
||||
if ($event['comment']) {
|
||||
$table->add('label', $this->plugin->gettext('comment'), $this->domain);
|
||||
|
|
|
@ -415,8 +415,8 @@ class libvcalendar implements Iterator
|
|||
$event['cancelled'] = true;
|
||||
else if ($prop->value == 'COMPLETED')
|
||||
$event['complete'] = 100;
|
||||
else
|
||||
$event['status'] = strval($prop->value);
|
||||
|
||||
$event['status'] = strval($prop->value);
|
||||
break;
|
||||
|
||||
case 'PRIORITY':
|
||||
|
|
Loading…
Add table
Reference in a new issue