Add full stop to sentences in the notifications view component for objects

refs #6778
This commit is contained in:
Eric Lippmann 2015-04-10 10:28:17 +02:00
parent d6374d4770
commit 5efc343f03
1 changed files with 4 additions and 4 deletions

View File

@ -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.')
. ')'; . ')';
} }
} }