Skip to content

Commit a273708

Browse files
Merge pull request #7738 from nextcloud/fix/improve-translations
fix: improve translations
2 parents 4f9d18b + 97587b3 commit a273708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Service/Proposal/ProposalService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ private function sendEmailNotifications(IUser $user, ProposalObject $proposal, P
511511
}
512512
// duration
513513
if ($proposal->getDuration() > 0) {
514-
$template->addBodyListItem((string)$proposal->getDuration() . ' minutes', $this->l10n->t('Duration:'));
514+
$template->addBodyListItem($this->l10n->t('%1$s minutes', [(string)$proposal->getDuration()]), $this->l10n->t('Duration:'));
515515
}
516516
// dates
517517
$temporaryText = '';
@@ -648,7 +648,7 @@ private function constructCalendarBlocker(IUser $user, ProposalObject $proposal)
648648
$vEvent->add('DTSTART', $firstProposalDate);
649649
$vEvent->add('DURATION', "PT{$proposal->getDuration()}M");
650650
$vEvent->add('RDATE', $proposalDates);
651-
$vEvent->add('SUMMARY', $this->l10n->t('[Proposed] ') . $proposal->getTitle());
651+
$vEvent->add('SUMMARY', $this->l10n->t('[Proposed] %1$s', [$proposal->getTitle()]));
652652
if (!empty($proposal->getDescription())) {
653653
$vEvent->add('DESCRIPTION', $proposal->getDescription());
654654
}

0 commit comments

Comments
 (0)