From dc8278108a70d905b003cba2fef5fefc7e05eb27 Mon Sep 17 00:00:00 2001 From: Daniel Brendel Date: Thu, 7 Aug 2025 23:53:12 +0200 Subject: [PATCH] #423 Scoped time info in mail --- app/lang/de/app.php | 3 ++- app/lang/en/app.php | 3 ++- app/views/mail/task_recurring.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/lang/de/app.php b/app/lang/de/app.php index 7fb8891..d782ecf 100644 --- a/app/lang/de/app.php +++ b/app/lang/de/app.php @@ -497,5 +497,6 @@ return [ 'days' => 'Tage', 'weeks' => 'Wochen', 'months' => 'Monate', - 'years' => 'Jahre' + 'years' => 'Jahre', + 'recurring_time_with_scope' => '{time} {scope}' ]; \ No newline at end of file diff --git a/app/lang/en/app.php b/app/lang/en/app.php index 38319d5..9a56187 100644 --- a/app/lang/en/app.php +++ b/app/lang/en/app.php @@ -497,5 +497,6 @@ return [ 'days' => 'Days', 'weeks' => 'Weeks', 'months' => 'Months', - 'years' => 'Years' + 'years' => 'Years', + 'recurring_time_with_scope' => '{time} {scope}' ]; \ No newline at end of file diff --git a/app/views/mail/task_recurring.php b/app/views/mail/task_recurring.php index 872f538..e152e2d 100644 --- a/app/views/mail/task_recurring.php +++ b/app/views/mail/task_recurring.php @@ -15,7 +15,7 @@ @endif
-
{{ __('app.recurring_time') }}: {{ $task->get('recurring_time') }}
+
{{ __('app.recurring_time') }}: {{ __('app.recurring_time_with_scope', ['time' => $task->get('recurring_time'), 'scope' => __('app.' . $task->get('recurring_scope'))]) }}
{{ __('app.due') }}: {{ date('Y-m-d', strtotime($task->get('due_date'))) }}
{{ workspace_url('/tasks') }}