From 590f0a83ea128d39056bca134bd393aa90eecf63 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 6 Jan 2018 11:56:20 +0100 Subject: [PATCH] Code for #1098 --- app/Repositories/Account/AccountRepository.php | 2 +- resources/lang/en_US/firefly.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index f7cd762e7f..328cfc21e7 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -398,7 +398,7 @@ class AccountRepository implements AccountRepositoryInterface 'user_id' => $this->user->id, 'transaction_type_id' => $transactionType->id, 'transaction_currency_id' => $currencyId, - 'description' => 'Initial balance for "' . $account->name . '"', + 'description' => strval(trans('firefly.initial_balance_description', ['account' => $account->name])), 'completed' => true, 'date' => $data['openingBalanceDate'], ] diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index a589769235..0c1a5f1f7c 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -701,6 +701,7 @@ return [ 'selected_transactions' => 'Selected transactions (:count)', 'already_cleared_transactions' => 'Already cleared transactions (:count)', 'submitted_end_balance' => 'Submitted end balance', + 'initial_balance_description' => 'Initial balance for ":account"', // categories: 'new_category' => 'New category',