diff --git a/app/Services/Internal/Support/AccountServiceTrait.php b/app/Services/Internal/Support/AccountServiceTrait.php index 8d0c087605..d58661fda4 100644 --- a/app/Services/Internal/Support/AccountServiceTrait.php +++ b/app/Services/Internal/Support/AccountServiceTrait.php @@ -217,13 +217,13 @@ trait AccountServiceTrait */ public function storeOpposingAccount(User $user, string $name): Account { - $name .= ' initial balance'; + $opposingAccountName = (string)trans('firefly.initial_balance_account', ['name' => $name]); Log::debug('Going to create an opening balance opposing account.'); /** @var AccountFactory $factory */ $factory = app(AccountFactory::class); $factory->setUser($user); - - return $factory->findOrCreate($name, AccountType::INITIAL_BALANCE); + + return $factory->findOrCreate($opposingAccountName, AccountType::INITIAL_BALANCE); } /** diff --git a/resources/lang/de_DE/firefly.php b/resources/lang/de_DE/firefly.php index 7f69b8057d..cd6349802a 100644 --- a/resources/lang/de_DE/firefly.php +++ b/resources/lang/de_DE/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Täglich', 'interest_calc_monthly' => 'Monatlich', 'interest_calc_yearly' => 'Jährlich', + 'initial_balance_account' => 'Startguthaben von :name', // categories: 'new_category' => 'Neue Kategorie', diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index 69bbef66d1..b0aade3a98 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Per day', 'interest_calc_monthly' => 'Per month', 'interest_calc_yearly' => 'Per year', + 'initial_balance_account' => 'Initial balance account of :name', // categories: 'new_category' => 'New category', diff --git a/resources/lang/es_ES/firefly.php b/resources/lang/es_ES/firefly.php index 32055a5137..35cea3df11 100644 --- a/resources/lang/es_ES/firefly.php +++ b/resources/lang/es_ES/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Por dia', 'interest_calc_monthly' => 'Por mes', 'interest_calc_yearly' => 'Por año', + 'initial_balance_account' => 'Balance inicial de :name', // categories: 'new_category' => 'Nueva categoría', diff --git a/resources/lang/fr_FR/firefly.php b/resources/lang/fr_FR/firefly.php index 1a30fc17d2..5321f705a0 100644 --- a/resources/lang/fr_FR/firefly.php +++ b/resources/lang/fr_FR/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Par jour', 'interest_calc_monthly' => 'Par mois', 'interest_calc_yearly' => 'Par an', + 'initial_balance_account' => 'Solde initial de :name', // categories: 'new_category' => 'Nouvelle catégorie', diff --git a/resources/lang/id_ID/firefly.php b/resources/lang/id_ID/firefly.php index 2f43d9c274..64f5fd5621 100644 --- a/resources/lang/id_ID/firefly.php +++ b/resources/lang/id_ID/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Per day', 'interest_calc_monthly' => 'Per month', 'interest_calc_yearly' => 'Per year', + 'initial_balance_account' => 'Saldo awal :name', // categories: 'new_category' => 'Kategori baru', diff --git a/resources/lang/it_IT/firefly.php b/resources/lang/it_IT/firefly.php index e3f3585a47..43d59f3829 100644 --- a/resources/lang/it_IT/firefly.php +++ b/resources/lang/it_IT/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Al giorno', 'interest_calc_monthly' => 'Al mese', 'interest_calc_yearly' => 'All\'anno', + 'initial_balance_account' => 'Saldo iniziale di :name', // categories: 'new_category' => 'Nuova categoria', diff --git a/resources/lang/nl_NL/firefly.php b/resources/lang/nl_NL/firefly.php index 12c5b2ead6..777837c2ea 100644 --- a/resources/lang/nl_NL/firefly.php +++ b/resources/lang/nl_NL/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Per dag', 'interest_calc_monthly' => 'Per maand', 'interest_calc_yearly' => 'Per jaar', + 'initial_balance_account' => 'Startsaldo rekening van :name', // categories: 'new_category' => 'Nieuwe categorie', diff --git a/resources/lang/pl_PL/firefly.php b/resources/lang/pl_PL/firefly.php index 054ec239c5..1a7928aa30 100644 --- a/resources/lang/pl_PL/firefly.php +++ b/resources/lang/pl_PL/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Na dzień', 'interest_calc_monthly' => 'Per month', 'interest_calc_yearly' => 'Per year', + 'initial_balance_account' => 'Saldo początkowe z :name', // categories: 'new_category' => 'Nowa kategoria', diff --git a/resources/lang/pt_BR/firefly.php b/resources/lang/pt_BR/firefly.php index 4ffcc12687..16787af121 100644 --- a/resources/lang/pt_BR/firefly.php +++ b/resources/lang/pt_BR/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Per day', 'interest_calc_monthly' => 'Per month', 'interest_calc_yearly' => 'Per year', + 'initial_balance_account' => 'Saldo inicial de :name', // categories: 'new_category' => 'Nova categoria', diff --git a/resources/lang/ru_RU/firefly.php b/resources/lang/ru_RU/firefly.php index 253304574d..6670abf8ed 100644 --- a/resources/lang/ru_RU/firefly.php +++ b/resources/lang/ru_RU/firefly.php @@ -779,6 +779,7 @@ return [ 'interest_calc_daily' => 'Per day', 'interest_calc_monthly' => 'Per month', 'interest_calc_yearly' => 'Per year', + 'initial_balance_account' => 'начальный баланс :name', // categories: 'new_category' => 'Новая категория', diff --git a/resources/lang/tr_TR/firefly.php b/resources/lang/tr_TR/firefly.php index 436c207a62..3c4938eebf 100644 --- a/resources/lang/tr_TR/firefly.php +++ b/resources/lang/tr_TR/firefly.php @@ -782,6 +782,7 @@ işlemlerin kontrol edildiğini lütfen unutmayın.', 'interest_calc_daily' => 'Per day', 'interest_calc_monthly' => 'Per month', 'interest_calc_yearly' => 'Per year', + 'initial_balance_account' => 'Başlangıç bakiyesi :name', // categories: 'new_category' => 'Yeni Kategori',