Skip to content

Commit

Permalink
Tweak wording when deleting a series.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 21, 2013
1 parent 9130f0f commit cf14abc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion imp/lib/Mime/Viewer/Itip.php
Expand Up @@ -338,7 +338,16 @@ protected function _vEvent($vevent, $id, $method = 'PUBLISH')
case 'CANCEL':
try {
$vevent->getAttribute('RECURRENCE-ID');
$desc = _("%s has cancelled an instance of the recurring \"%s\".");
$params = $vevent->getAttribute('RECURRENCE-ID', true);
foreach ($params as $param) {
if (array_key_exists('RANGE', $param)) {
$desc = _("%s has cancelled multiple instances of the recurring \"%s\".");
}
break;
}
if (empty($desc)) {
$desc = _("%s has cancelled an instance of the recurring \"%s\".");
}
if ($registry->hasMethod('calendar/replace')) {
$options['delete'] = _("Update in my calendar");
}
Expand Down

0 comments on commit cf14abc

Please sign in to comment.