diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index c0a481bbd56c..493811ee7b7f 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -663,7 +663,8 @@ $LANG = array( 'valid_until' => 'Valid Until', 'reset_terms' => 'Reset terms', 'reset_footer' => 'Reset footer', - 'invoices_sent' => ':count invoice sent|:count invoices sent', + 'invoice_sent' => ':count invoice sent', + 'invoices_sent' => ':count invoices sent', 'status_draft' => 'Draft', 'status_sent' => 'Sent', 'status_viewed' => 'Viewed', diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index f7ce2bb5cbb4..9aa10836805f 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -384,10 +384,10 @@ {{ trans('texts.activity') }} @if ($invoicesSent)
- @if (in_array(App::getLocale(), ['pl', 'cs', 'hr', 'lt'])) - + @if ($invoicesSent == 1) + {{ trans('texts.invoice_sent', ['count' => $invoicesSent]) }} @else - {{ trans_choice('texts.invoices_sent', $invoicesSent) }} + {{ trans('texts.invoices_sent', ['count' => $invoicesSent]) }} @endif
@endif