Add full stop to sentences in the notifications view component for objects
refs #6778
This commit is contained in:
parent
d6374d4770
commit
5efc343f03
|
@ -35,22 +35,22 @@ if (! in_array((int) $object->state, array(0, 99))) {
|
||||||
if ($object->current_notification_number > 0) {
|
if ($object->current_notification_number > 0) {
|
||||||
if ((int) $object->current_notification_number === 1) {
|
if ((int) $object->current_notification_number === 1) {
|
||||||
$msg = sprintf(
|
$msg = sprintf(
|
||||||
$this->translate('A notification has been sent for this issue %s'),
|
$this->translate('A notification has been sent for this issue %s.'),
|
||||||
$this->timeAgo($object->last_notification)
|
$this->timeAgo($object->last_notification)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$msg = sprintf(
|
$msg = sprintf(
|
||||||
$this->translate('%d notifications have been sent for this issue'),
|
$this->translate('%d notifications have been sent for this issue.'),
|
||||||
$object->current_notification_number
|
$object->current_notification_number
|
||||||
) . '<br />' . sprintf(
|
) . '<br />' . sprintf(
|
||||||
$this->translate('The last one was sent %s'),
|
$this->translate('The last one was sent %s.'),
|
||||||
$this->timeAgo($object->last_notification)
|
$this->timeAgo($object->last_notification)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
echo $msg;
|
echo $msg;
|
||||||
} else {
|
} else {
|
||||||
echo '('
|
echo '('
|
||||||
. $this->translate('No notification has been sent for this issue')
|
. $this->translate('No notification has been sent for this issue.')
|
||||||
. ')';
|
. ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue