aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-01-29 15:16:24 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-01-29 15:16:24 +0000
commit7c1df847d94d3956bc763b94b73cebfe108dc9a1 (patch)
treee18e003bff65c5bf0748c644d6cd3d235cb1feca /locale
parentda0110d5e85279123e8dde392cb4c926397238bf (diff)
StEP 01354, closes #1354
Closes #1354 Merge request studip/studip!2116
Diffstat (limited to 'locale')
-rw-r--r--locale/de/LC_MAILS/_date_information.php28
-rw-r--r--locale/de/LC_MAILS/date_changed.php10
-rw-r--r--locale/de/LC_MAILS/date_created.php10
-rw-r--r--locale/de/LC_MAILS/date_deleted.php6
-rw-r--r--locale/de/LC_MAILS/date_participation.php14
-rw-r--r--locale/en/LC_MAILS/_date_information.php24
-rw-r--r--locale/en/LC_MAILS/date_changed.php10
-rw-r--r--locale/en/LC_MAILS/date_created.php10
-rw-r--r--locale/en/LC_MAILS/date_deleted.php6
-rw-r--r--locale/en/LC_MAILS/date_participation.php14
10 files changed, 132 insertions, 0 deletions
diff --git a/locale/de/LC_MAILS/_date_information.php b/locale/de/LC_MAILS/_date_information.php
new file mode 100644
index 0000000..5eab14d
--- /dev/null
+++ b/locale/de/LC_MAILS/_date_information.php
@@ -0,0 +1,28 @@
+*Zeiten:* <?= date('d.m.Y H:i', $date->begin) ?> - <?= date('d.m.Y H:i', $date->end) ?>
+
+*Titel:* <?= $date->title ?>
+
+<?= $date->description ?? '' ?>
+
+--
+
+<? if ($date->category) : ?>
+*Kategorie:* <?= $date->getCategoryAsString() ?>
+<? endif ?>
+
+*Zugriff:* <?= $date->getAccessAsString() ?>
+
+<? if ($date->repetition_type) : ?>
+*Wiederholung:* <?= $date->getRepetitionAsString() ?>
+<? endif ?>
+
+<? if (Config::get()->CALENDAR_GROUP_ENABLE && count($date->calendars) > 1) : ?>
+*Teilnehmende:*
+<? foreach($date->getParticipantsAsStringArray($receiver->user_id) as $participant_string) : ?>
+- <?= $participant_string ?>
+<? endforeach ?>
+<? endif ?>
+
+<? if ($receiver_date_assignment) : ?>
+**Ihre Teilnahme:** <?= $receiver_date_assignment->getParticipationAsString() ?>
+<? endif ?>
diff --git a/locale/de/LC_MAILS/date_changed.php b/locale/de/LC_MAILS/date_changed.php
new file mode 100644
index 0000000..aa92b7f
--- /dev/null
+++ b/locale/de/LC_MAILS/date_changed.php
@@ -0,0 +1,10 @@
+<?= $date->editor->getFullName() ?> hat einen Termin im Kalender geändert.
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date,
+ 'receiver' => $receiver,
+]) ?>
+
+--
+
+Direkt zum Termin: <?= URLHelper::getURL('dispatch.php/calendar/date/index/' . $date->id) ?>
diff --git a/locale/de/LC_MAILS/date_created.php b/locale/de/LC_MAILS/date_created.php
new file mode 100644
index 0000000..d323b94
--- /dev/null
+++ b/locale/de/LC_MAILS/date_created.php
@@ -0,0 +1,10 @@
+<?= $date->editor->getFullName() ?> hat einen Termin im Kalender eingetragen.
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date,
+ 'receiver' => $receiver,
+]) ?>
+
+--
+
+Direkt zum Termin: <?= URLHelper::getURL('dispatch.php/calendar/date/index/' . $date->id) ?>
diff --git a/locale/de/LC_MAILS/date_deleted.php b/locale/de/LC_MAILS/date_deleted.php
new file mode 100644
index 0000000..0ff6ef8
--- /dev/null
+++ b/locale/de/LC_MAILS/date_deleted.php
@@ -0,0 +1,6 @@
+<?= $date->editor->getFullName() ?> hat einen Termin im Kalender gelöscht.
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date,
+ 'receiver' => $receiver,
+]) ?>
diff --git a/locale/de/LC_MAILS/date_participation.php b/locale/de/LC_MAILS/date_participation.php
new file mode 100644
index 0000000..11b0fb2
--- /dev/null
+++ b/locale/de/LC_MAILS/date_participation.php
@@ -0,0 +1,14 @@
+<? if ($date_assignment->participation === 'ACCEPTED') : ?>
+<?= $date_assignment->user->getFullName() ?> hat Ihren Termin angenommen.
+<? elseif ($date_assignment->participation === 'DECLINED') : ?>
+<?= $date_assignment->user->getFullName() ?> hat Ihren Termin abgelehnt.
+<? endif ?>
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date_assignment->calendar_date,
+ 'receiver' => $date_assignment->calendar_date->author,
+]) ?>
+
+--
+
+Direkt zum Termin: <?= URLHelper::getURL('dispatch.php/calendar/date/index/' . $date_assignment->calendar_date->id) ?>
diff --git a/locale/en/LC_MAILS/_date_information.php b/locale/en/LC_MAILS/_date_information.php
new file mode 100644
index 0000000..a0cb470
--- /dev/null
+++ b/locale/en/LC_MAILS/_date_information.php
@@ -0,0 +1,24 @@
+*Time:* <?= date('d.m.Y H:i', $date->begin) ?> - <?= date('d.m.Y H:i', $date->end) ?>
+
+*Title:* <?= $date->title ?>
+
+<?= $date->description ?? '' ?>
+
+--
+
+<? if ($date->category) : ?>
+*Category:* <?= $date->category ?>
+<? endif ?>
+
+*Access:* <?= $date->getAccessAsString() ?>
+
+<? if ($date->repetition_type) : ?>
+*Repetition:* <?= $date->getRepetitionAsString() ?>
+<? endif ?>
+
+<? if (Config::get()->CALENDAR_GROUP_ENABLE && count($date->calendars) > 1) : ?>
+*Participants:*
+<? foreach($date->getParticipantsAsStringArray($receiver->user_id) as $participant_string) : ?>
+- <?= $participant_string ?>
+<? endforeach ?>
+<? endif ?>
diff --git a/locale/en/LC_MAILS/date_changed.php b/locale/en/LC_MAILS/date_changed.php
new file mode 100644
index 0000000..ca1d670
--- /dev/null
+++ b/locale/en/LC_MAILS/date_changed.php
@@ -0,0 +1,10 @@
+<?= $date->editor->getFullName() ?> has modified a date in the calendar.
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date,
+ 'receiver' => $receiver,
+]) ?>
+
+--
+
+Go to date: <?= URLHelper::getURL('dispatch.php/calendar/date/index/' . $date->id) ?>
diff --git a/locale/en/LC_MAILS/date_created.php b/locale/en/LC_MAILS/date_created.php
new file mode 100644
index 0000000..bc805ae
--- /dev/null
+++ b/locale/en/LC_MAILS/date_created.php
@@ -0,0 +1,10 @@
+<?= $date->editor->getFullName() ?> has entered a date in the calendar.
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date,
+ 'receiver' => $receiver,
+]) ?>
+
+--
+
+Go to date: <?= URLHelper::getURL('dispatch.php/calendar/date/index/' . $date->id) ?>
diff --git a/locale/en/LC_MAILS/date_deleted.php b/locale/en/LC_MAILS/date_deleted.php
new file mode 100644
index 0000000..b4bafd6
--- /dev/null
+++ b/locale/en/LC_MAILS/date_deleted.php
@@ -0,0 +1,6 @@
+<?= $date->editor->getFullName() ?> has deleted a date in the calendar.
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date,
+ 'receiver' => $receiver,
+]) ?>
diff --git a/locale/en/LC_MAILS/date_participation.php b/locale/en/LC_MAILS/date_participation.php
new file mode 100644
index 0000000..f761134
--- /dev/null
+++ b/locale/en/LC_MAILS/date_participation.php
@@ -0,0 +1,14 @@
+<? if ($date_assignment->participation === 'ACCEPTED') : ?>
+<?= $date_assignment->user->getFullName() ?> has accepted your date.
+<? elseif ($date_assignment->participation === 'DECLINED') : ?>
+<?= $date_assignment->user->getFullName() ?> has declined your date.
+<? endif ?>
+
+<?= $this->render_partial(__DIR__ . '/_date_information', [
+ 'date' => $date_assignment->calendar_date,
+ 'receiver' => $date_assignment->calendar_date->author,
+]) ?>
+
+--
+
+Go to date: <?= URLHelper::getURL('dispatch.php/calendar/date/index/' . $date_assignment->calendar_date->id) ?>