Skip to content

Firefly III: a personal finances manager

Code for #1098

James Cole590f0a83ea12
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',