Fix untranslatable strings #3159

This commit is contained in:
James Cole
2020-02-29 13:58:34 +01:00
parent 4434ea40ee
commit d580bf8f43
6 changed files with 19 additions and 6 deletions

View File

@@ -473,7 +473,9 @@ class AccountRepository implements AccountRepositoryInterface
if (AccountType::ASSET !== $account->accountType->type) {
throw new FireflyException(sprintf('%s is not an asset account.', $account->name));
}
$name = $account->name . ' reconciliation';
$name = trans('firefly.reconciliation_account_name', ['name' => $account->name]);
/** @var AccountType $type */
$type = AccountType::where('type', AccountType::RECONCILIATION)->first();
$accounts = $this->user->accounts()->where('account_type_id', $type->id)->get();