Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Added translation for initial balance account name on creation
Dennis Enderink81a23b5b222a
diff --git a/app/Services/Internal/Support/AccountServiceTrait.php b/app/Services/Internal/Support/AccountServiceTrait.phpindex 8d0c087605..c87f879934 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 = 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.phpindex 6bb36017f1..dbbf0df38c 100644--- a/resources/lang/de_DE/firefly.php+++ b/resources/lang/de_DE/firefly.php@@ -777,6 +777,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.phpindex 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.phpindex 58bf1445d2..f7771f9dec 100644--- a/resources/lang/es_ES/firefly.php+++ b/resources/lang/es_ES/firefly.php@@ -777,6 +777,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.phpindex 8d736f5843..6513a260de 100644--- a/resources/lang/fr_FR/firefly.php+++ b/resources/lang/fr_FR/firefly.php@@ -777,6 +777,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.phpindex c05114bb72..a37f546963 100644--- a/resources/lang/id_ID/firefly.php+++ b/resources/lang/id_ID/firefly.php@@ -777,6 +777,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.phpindex 2ce4688079..85b6dc8e12 100644--- a/resources/lang/it_IT/firefly.php+++ b/resources/lang/it_IT/firefly.php@@ -777,6 +777,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.phpindex 191c6b4626..4e376add2c 100644--- a/resources/lang/nl_NL/firefly.php+++ b/resources/lang/nl_NL/firefly.php@@ -777,6 +777,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.phpindex 441da593d0..57318e2a4c 100644--- a/resources/lang/pl_PL/firefly.php+++ b/resources/lang/pl_PL/firefly.php@@ -777,6 +777,7 @@ return ['interest_calc_daily' => 'Per day','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.phpindex 7e01bbd9c5..4caafb437f 100644--- a/resources/lang/pt_BR/firefly.php+++ b/resources/lang/pt_BR/firefly.php@@ -777,6 +777,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.phpindex 88443f3a75..d01b8a96e4 100644--- a/resources/lang/ru_RU/firefly.php+++ b/resources/lang/ru_RU/firefly.php@@ -777,6 +777,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.phpindex 1072338688..e6a5209864 100644--- a/resources/lang/tr_TR/firefly.php+++ b/resources/lang/tr_TR/firefly.php@@ -780,6 +780,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',