Merge pull request #1826 from dennisenderink/bugfix/translate-start-balance-on-opening-asset-account

Bugfix/translate start balance on opening asset account
This commit is contained in:
James Cole
2018-10-28 13:11:31 +01:00
committed by GitHub
12 changed files with 14 additions and 3 deletions

View File

@@ -217,13 +217,13 @@ trait AccountServiceTrait
*/ */
public function storeOpposingAccount(User $user, string $name): Account 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.'); Log::debug('Going to create an opening balance opposing account.');
/** @var AccountFactory $factory */ /** @var AccountFactory $factory */
$factory = app(AccountFactory::class); $factory = app(AccountFactory::class);
$factory->setUser($user); $factory->setUser($user);
return $factory->findOrCreate($name, AccountType::INITIAL_BALANCE); return $factory->findOrCreate($opposingAccountName, AccountType::INITIAL_BALANCE);
} }
/** /**

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Täglich', 'interest_calc_daily' => 'Täglich',
'interest_calc_monthly' => 'Monatlich', 'interest_calc_monthly' => 'Monatlich',
'interest_calc_yearly' => 'Jährlich', 'interest_calc_yearly' => 'Jährlich',
'initial_balance_account' => 'Startguthaben von :name',
// categories: // categories:
'new_category' => 'Neue Kategorie', 'new_category' => 'Neue Kategorie',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Per day', 'interest_calc_daily' => 'Per day',
'interest_calc_monthly' => 'Per month', 'interest_calc_monthly' => 'Per month',
'interest_calc_yearly' => 'Per year', 'interest_calc_yearly' => 'Per year',
'initial_balance_account' => 'Initial balance account of :name',
// categories: // categories:
'new_category' => 'New category', 'new_category' => 'New category',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Por dia', 'interest_calc_daily' => 'Por dia',
'interest_calc_monthly' => 'Por mes', 'interest_calc_monthly' => 'Por mes',
'interest_calc_yearly' => 'Por año', 'interest_calc_yearly' => 'Por año',
'initial_balance_account' => 'Balance inicial de :name',
// categories: // categories:
'new_category' => 'Nueva categoría', 'new_category' => 'Nueva categoría',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Par jour', 'interest_calc_daily' => 'Par jour',
'interest_calc_monthly' => 'Par mois', 'interest_calc_monthly' => 'Par mois',
'interest_calc_yearly' => 'Par an', 'interest_calc_yearly' => 'Par an',
'initial_balance_account' => 'Solde initial de :name',
// categories: // categories:
'new_category' => 'Nouvelle catégorie', 'new_category' => 'Nouvelle catégorie',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Per day', 'interest_calc_daily' => 'Per day',
'interest_calc_monthly' => 'Per month', 'interest_calc_monthly' => 'Per month',
'interest_calc_yearly' => 'Per year', 'interest_calc_yearly' => 'Per year',
'initial_balance_account' => 'Saldo awal :name',
// categories: // categories:
'new_category' => 'Kategori baru', 'new_category' => 'Kategori baru',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Al giorno', 'interest_calc_daily' => 'Al giorno',
'interest_calc_monthly' => 'Al mese', 'interest_calc_monthly' => 'Al mese',
'interest_calc_yearly' => 'All\'anno', 'interest_calc_yearly' => 'All\'anno',
'initial_balance_account' => 'Saldo iniziale di :name',
// categories: // categories:
'new_category' => 'Nuova categoria', 'new_category' => 'Nuova categoria',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Per dag', 'interest_calc_daily' => 'Per dag',
'interest_calc_monthly' => 'Per maand', 'interest_calc_monthly' => 'Per maand',
'interest_calc_yearly' => 'Per jaar', 'interest_calc_yearly' => 'Per jaar',
'initial_balance_account' => 'Startsaldo rekening van :name',
// categories: // categories:
'new_category' => 'Nieuwe categorie', 'new_category' => 'Nieuwe categorie',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Na dzień', 'interest_calc_daily' => 'Na dzień',
'interest_calc_monthly' => 'Per month', 'interest_calc_monthly' => 'Per month',
'interest_calc_yearly' => 'Per year', 'interest_calc_yearly' => 'Per year',
'initial_balance_account' => 'Saldo początkowe z :name',
// categories: // categories:
'new_category' => 'Nowa kategoria', 'new_category' => 'Nowa kategoria',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Per day', 'interest_calc_daily' => 'Per day',
'interest_calc_monthly' => 'Per month', 'interest_calc_monthly' => 'Per month',
'interest_calc_yearly' => 'Per year', 'interest_calc_yearly' => 'Per year',
'initial_balance_account' => 'Saldo inicial de :name',
// categories: // categories:
'new_category' => 'Nova categoria', 'new_category' => 'Nova categoria',

View File

@@ -779,6 +779,7 @@ return [
'interest_calc_daily' => 'Per day', 'interest_calc_daily' => 'Per day',
'interest_calc_monthly' => 'Per month', 'interest_calc_monthly' => 'Per month',
'interest_calc_yearly' => 'Per year', 'interest_calc_yearly' => 'Per year',
'initial_balance_account' => 'начальный баланс :name',
// categories: // categories:
'new_category' => 'Новая категория', 'new_category' => 'Новая категория',

View File

@@ -782,6 +782,7 @@ işlemlerin kontrol edildiğini lütfen unutmayın.',
'interest_calc_daily' => 'Per day', 'interest_calc_daily' => 'Per day',
'interest_calc_monthly' => 'Per month', 'interest_calc_monthly' => 'Per month',
'interest_calc_yearly' => 'Per year', 'interest_calc_yearly' => 'Per year',
'initial_balance_account' => 'Başlangıç bakiyesi :name',
// categories: // categories:
'new_category' => 'Yeni Kategori', 'new_category' => 'Yeni Kategori',