language fix #349

This commit is contained in:
denisdulici 2018-05-21 20:05:37 +03:00
parent c87756067b
commit f3414ddbd8
3 changed files with 8 additions and 5 deletions

View File

@ -37,13 +37,11 @@ class Transfers extends Controller
$revenue = $item->revenue; $revenue = $item->revenue;
$payment = $item->payment; $payment = $item->payment;
$data_name = [ $name = trans('transfers.messages.delete', [
'from' => $payment->account->name, 'from' => $payment->account->name,
'to' => $revenue->account->name, 'to' => $revenue->account->name,
'amount' => money($payment->amount, $payment->currency_code, true) 'amount' => money($payment->amount, $payment->currency_code, true)
]; ]);
$name = trans('transfers.delete_transfer', $data_name);
$transfers[] = (object)[ $transfers[] = (object)[
'id' => $item->id, 'id' => $item->id,

View File

@ -105,6 +105,7 @@ return [
'new' => 'New :type', 'new' => 'New :type',
'edit' => 'Edit :type', 'edit' => 'Edit :type',
], ],
'form' => [ 'form' => [
'enter' => 'Enter :field', 'enter' => 'Enter :field',
'select' => [ 'select' => [

View File

@ -4,5 +4,9 @@ return [
'from_account' => 'From Account', 'from_account' => 'From Account',
'to_account' => 'To Account', 'to_account' => 'To Account',
'delete_transfer' => 'Transfer : :from to :to :amount',
'messages' => [
'delete' => ':from to :to (:amount)',
],
]; ];