Remove trans_choice

This commit is contained in:
Hillel Coren 2017-03-27 21:51:48 +03:00
parent 0b67376577
commit 4c03b24283
2 changed files with 5 additions and 4 deletions

View File

@ -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',

View File

@ -384,10 +384,10 @@
<i class="glyphicon glyphicon-exclamation-sign"></i> {{ trans('texts.activity') }}
@if ($invoicesSent)
<div class="pull-right" style="font-size:14px;padding-top:4px">
@if (in_array(App::getLocale(), ['pl', 'cs', 'hr', 'lt']))
<!-- https://github.com/invoiceninja/invoiceninja/issues/613 -->
@if ($invoicesSent == 1)
{{ trans('texts.invoice_sent', ['count' => $invoicesSent]) }}
@else
{{ trans_choice('texts.invoices_sent', $invoicesSent) }}
{{ trans('texts.invoices_sent', ['count' => $invoicesSent]) }}
@endif
</div>
@endif