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
commit f46904c644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
{
$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);
}
/**

View File

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

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

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

View File

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

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' => 'Saldo awal :name',
// categories:
'new_category' => 'Kategori baru',

View File

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

View File

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

View File

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

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' => 'Saldo inicial de :name',
// categories:
'new_category' => 'Nova categoria',

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' => 'начальный баланс :name',
// categories:
'new_category' => 'Новая категория',

View File

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