Make message singular / plural

This commit is contained in:
James Cole
2025-08-09 11:16:46 +02:00
parent e71e5a877b
commit 3c3b6615e6
2 changed files with 16 additions and 7 deletions

View File

@@ -141,8 +141,10 @@ return [
// subscription is overdue. // subscription is overdue.
'subscriptions_overdue_subject_multi' => 'You have :count subscriptions that are overdue to be paid', 'subscriptions_overdue_subject_multi' => 'You have :count subscriptions that are overdue to be paid',
'subscriptions_overdue_subject_single' => 'You have a subscription that is overdue to be paid', 'subscriptions_overdue_subject_single' => 'You have a subscription that is overdue to be paid',
'subscriptions_overdue_warning_intro' => 'You have :count subscription(s) that are overdue to be paid. At the following date(s) a payment was expected, but it has not yet arrived.', 'subscriptions_overdue_warning_intro_single' => 'You have one subscription that is overdue to be paid. At the following date(s) a payment was expected, but it has not yet arrived.',
'subscriptions_overdue_please_action' => 'Perhaps you have simply not linked a transaction to these subscription(s). In that case, please do so. You will NOT get another warning about these overdue subscriptions(s).', 'subscriptions_overdue_warning_intro_multi' => 'You have :count subscription(s) that are overdue to be paid. At the following date(s) a payment was expected, but it has not yet arrived.',
'subscriptions_overdue_please_action_single' => 'Perhaps you have simply not linked a transaction to this subscription. In that case, please do so. You will NOT get another warning about this overdue subscription. A new warning will be sent out for the NEXT due payment.',
'subscriptions_overdue_please_action_multi' => 'Perhaps you have simply not linked a transaction to these subscriptions. In that case, please do so. You will NOT get another warning about these overdue subscriptions. A new warning will be sent out for the NEXT due payments.',
'subscriptions_overdue_outro' => 'If you believe this message is wrong, please contact the Firefly III developer. Thank you for using Firefly III.', 'subscriptions_overdue_outro' => 'If you believe this message is wrong, please contact the Firefly III developer. Thank you for using Firefly III.',
// bill warning // bill warning
'bill_warning_subject_end_date' => 'Your subscription ":name" is due to end in :diff days', 'bill_warning_subject_end_date' => 'Your subscription ":name" is due to end in :diff days',

View File

@@ -1,6 +1,10 @@
@component('mail::message') @component('mail::message')
{{ trans('email.subscriptions_overdue_warning_intro', ['count' => $count]) }} @if(1 === $count)
{{ trans('email.subscriptions_overdue_warning_intro_single') }}
@endif
@if(1 !== $count)
{{ trans('email.subscriptions_overdue_warning_intro_multi', ['count' => $count]) }}
@endif
@foreach($info as $row) @foreach($info as $row)
- {{ $row['bill']->name }}: - {{ $row['bill']->name }}:
@foreach($row['pay_dates'] as $date) @foreach($row['pay_dates'] as $date)
@@ -8,10 +12,13 @@
@endforeach @endforeach
@endforeach @endforeach
{{ trans('email.subscriptions_overdue_please_action') }} @if(1 === $count)
{{ trans('email.subscriptions_overdue_please_action_single') }}
@endif
@if(1 !== $count)
{{ trans('email.subscriptions_overdue_please_action_multi', ['count' => $count]) }}
@endif
{{ trans('email.subscriptions_overdue_outro') }} {{ trans('email.subscriptions_overdue_outro') }}
@endcomponent @endcomponent