Skip to content

Commit

Permalink
language fix #349
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed May 21, 2018
1 parent c877560 commit f3414dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/Http/Controllers/Banking/Transfers.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ public function index()
$revenue = $item->revenue;
$payment = $item->payment;

$data_name = [
$name = trans('transfers.messages.delete', [
'from' => $payment->account->name,
'to' => $revenue->account->name,
'amount' => money($payment->amount, $payment->currency_code, true)
];

$name = trans('transfers.delete_transfer', $data_name);
]);

$transfers[] = (object)[
'id' => $item->id,
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en-GB/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
'new' => 'New :type',
'edit' => 'Edit :type',
],

'form' => [
'enter' => 'Enter :field',
'select' => [
Expand Down
6 changes: 5 additions & 1 deletion resources/lang/en-GB/transfers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@

'from_account' => 'From Account',
'to_account' => 'To Account',
'delete_transfer' => 'Transfer : :from to :to :amount',

'messages' => [
'delete' => ':from to :to (:amount)',
],

];

0 comments on commit f3414dd

Please sign in to comment.