aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-03-25 08:49:01 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-03-25 09:29:35 +0000
commitc90efd5479d7e8ac6ba56934c4375310fab62389 (patch)
treea136dd78fc4f95352f29da9cb5a4bc907aa9a05b /locale
parent74cbbbbd2e00c29f50b7ba0b1c6ad534f5c689d6 (diff)
CalendarDateAssignment::cbSendDateDeletedMail: name the user that deleted the date instead of the editor, fixes #3884
Closes #3884 Merge request studip/studip!2735 (cherry picked from commit daf2bba059fd373c7a20f982faf65c4572a8c326) 13121792 CalendarDateAssignment::cbSendDateDeletedMail: name the user that deleted the... 8e4d8474 fixed error in test, added missing translation
Diffstat (limited to 'locale')
-rw-r--r--locale/de/LC_MAILS/_date_information.php2
-rw-r--r--locale/de/LC_MAILS/date_deleted.php2
-rw-r--r--locale/en/LC_MAILS/_date_information.php4
-rw-r--r--locale/en/LC_MAILS/date_deleted.php2
4 files changed, 7 insertions, 3 deletions
diff --git a/locale/de/LC_MAILS/_date_information.php b/locale/de/LC_MAILS/_date_information.php
index 5eab14d..ac8e981 100644
--- a/locale/de/LC_MAILS/_date_information.php
+++ b/locale/de/LC_MAILS/_date_information.php
@@ -23,6 +23,6 @@
<? endforeach ?>
<? endif ?>
-<? if ($receiver_date_assignment) : ?>
+<? if (!empty($receiver_date_assignment)) : ?>
**Ihre Teilnahme:** <?= $receiver_date_assignment->getParticipationAsString() ?>
<? endif ?>
diff --git a/locale/de/LC_MAILS/date_deleted.php b/locale/de/LC_MAILS/date_deleted.php
index 0ff6ef8..0f319d3 100644
--- a/locale/de/LC_MAILS/date_deleted.php
+++ b/locale/de/LC_MAILS/date_deleted.php
@@ -1,4 +1,4 @@
-<?= $date->editor->getFullName() ?> hat einen Termin im Kalender gelöscht.
+<?= $actor->getFullName() ?> hat einen Termin im Kalender gelöscht.
<?= $this->render_partial(__DIR__ . '/_date_information', [
'date' => $date,
diff --git a/locale/en/LC_MAILS/_date_information.php b/locale/en/LC_MAILS/_date_information.php
index a0cb470..0619261 100644
--- a/locale/en/LC_MAILS/_date_information.php
+++ b/locale/en/LC_MAILS/_date_information.php
@@ -22,3 +22,7 @@
- <?= $participant_string ?>
<? endforeach ?>
<? endif ?>
+
+<? if (!empty($receiver_date_assignment)) : ?>
+**Your participation:** <?= $receiver_date_assignment->getParticipationAsString() ?>
+<? endif ?>
diff --git a/locale/en/LC_MAILS/date_deleted.php b/locale/en/LC_MAILS/date_deleted.php
index b4bafd6..91ef248 100644
--- a/locale/en/LC_MAILS/date_deleted.php
+++ b/locale/en/LC_MAILS/date_deleted.php
@@ -1,4 +1,4 @@
-<?= $date->editor->getFullName() ?> has deleted a date in the calendar.
+<?= $actor->getFullName() ?> has deleted a date in the calendar.
<?= $this->render_partial(__DIR__ . '/_date_information', [
'date' => $date,