Added translation for initial balance account name on creation

This commit is contained in:
Dennis Enderink 2018-10-27 23:20:54 +02:00
parent 3a427dd0f4
commit 81a23b5b22
No known key found for this signature in database
GPG Key ID: DCB61842FAAB4048
12 changed files with 13 additions and 2 deletions

View File

@ -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);
}
/**

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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' => 'Новая категория',

View File

@ -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',