mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Fix untranslatable strings #3159
This commit is contained in:
@@ -88,7 +88,7 @@ class ShowController extends Controller
|
|||||||
throw new FireflyException('This transaction is broken :(.');
|
throw new FireflyException('This transaction is broken :(.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$type = $first->transactionType->type;
|
$type = (string)trans(sprintf('firefly.%s',$first->transactionType->type));
|
||||||
$title = 1 === $splits ? $first->description : $transactionGroup->title;
|
$title = 1 === $splits ? $first->description : $transactionGroup->title;
|
||||||
$subTitle = sprintf('%s: "%s"', $type, $title);
|
$subTitle = sprintf('%s: "%s"', $type, $title);
|
||||||
|
|
||||||
|
@@ -473,7 +473,9 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
if (AccountType::ASSET !== $account->accountType->type) {
|
if (AccountType::ASSET !== $account->accountType->type) {
|
||||||
throw new FireflyException(sprintf('%s is not an asset account.', $account->name));
|
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 */
|
/** @var AccountType $type */
|
||||||
$type = AccountType::where('type', AccountType::RECONCILIATION)->first();
|
$type = AccountType::where('type', AccountType::RECONCILIATION)->first();
|
||||||
$accounts = $this->user->accounts()->where('account_type_id', $type->id)->get();
|
$accounts = $this->user->accounts()->where('account_type_id', $type->id)->get();
|
||||||
|
@@ -51,6 +51,7 @@ return [
|
|||||||
'edit_journal' => 'Edit transaction ":description"',
|
'edit_journal' => 'Edit transaction ":description"',
|
||||||
'edit_reconciliation' => 'Edit ":description"',
|
'edit_reconciliation' => 'Edit ":description"',
|
||||||
'delete_journal' => 'Delete transaction ":description"',
|
'delete_journal' => 'Delete transaction ":description"',
|
||||||
|
'delete_group' => 'Delete transaction ":description"',
|
||||||
'tags' => 'Tags',
|
'tags' => 'Tags',
|
||||||
'createTag' => 'Create new tag',
|
'createTag' => 'Create new tag',
|
||||||
'edit_tag' => 'Edit tag ":tag"',
|
'edit_tag' => 'Edit tag ":tag"',
|
||||||
|
@@ -205,6 +205,7 @@ return [
|
|||||||
'active_exp_bills_only' => 'active and expected bills only',
|
'active_exp_bills_only' => 'active and expected bills only',
|
||||||
'average_per_bill' => 'average per bill',
|
'average_per_bill' => 'average per bill',
|
||||||
'expected_total' => 'expected total',
|
'expected_total' => 'expected total',
|
||||||
|
'reconciliation_account_name' => ':name reconciliation',
|
||||||
// API access
|
// API access
|
||||||
'authorization_request' => 'Firefly III v:version Authorization Request',
|
'authorization_request' => 'Firefly III v:version Authorization Request',
|
||||||
'authorization_request_intro' => '<strong>:client</strong> is requesting permission to access your financial administration. Would you like to authorize <strong>:client</strong> to access these records?',
|
'authorization_request_intro' => '<strong>:client</strong> is requesting permission to access your financial administration. Would you like to authorize <strong>:client</strong> to access these records?',
|
||||||
@@ -215,6 +216,8 @@ return [
|
|||||||
'name_in_currency' => ':name in :currency',
|
'name_in_currency' => ':name in :currency',
|
||||||
'paid_in_currency' => 'Paid in :currency',
|
'paid_in_currency' => 'Paid in :currency',
|
||||||
'unpaid_in_currency' => 'Unpaid in :currency',
|
'unpaid_in_currency' => 'Unpaid in :currency',
|
||||||
|
'is_alpha_warning' => 'You are running an ALPHA version. Be wary of bugs and issues.',
|
||||||
|
'is_beta_warning' => 'You are running an BETA version. Be wary of bugs and issues.',
|
||||||
|
|
||||||
// check for updates:
|
// check for updates:
|
||||||
'update_check_title' => 'Check for updates',
|
'update_check_title' => 'Check for updates',
|
||||||
@@ -1391,6 +1394,13 @@ return [
|
|||||||
'(partially) refunds_outward' => '(partially) refunds',
|
'(partially) refunds_outward' => '(partially) refunds',
|
||||||
'(partially) pays for_outward' => '(partially) pays for',
|
'(partially) pays for_outward' => '(partially) pays for',
|
||||||
'(partially) reimburses_outward' => '(partially) reimburses',
|
'(partially) reimburses_outward' => '(partially) reimburses',
|
||||||
|
'is (partially) refunded by' => 'is (partially) refunded by',
|
||||||
|
'is (partially) paid for by' => 'is (partially) paid for by',
|
||||||
|
'is (partially) reimbursed by' => 'is (partially) reimbursed by',
|
||||||
|
'relates to' => 'relates to',
|
||||||
|
'(partially) refunds' => '(partially) refunds',
|
||||||
|
'(partially) pays for' => '(partially) pays for',
|
||||||
|
'(partially) reimburses' => '(partially) reimburses',
|
||||||
|
|
||||||
// split a transaction:
|
// split a transaction:
|
||||||
'splits' => 'Splits',
|
'splits' => 'Splits',
|
||||||
|
@@ -141,9 +141,9 @@
|
|||||||
<b>{{ 'version'|_ }}</b> <a href="{{ route('debug') }}">{{ Config.get('firefly.version') }}</a>
|
<b>{{ 'version'|_ }}</b> <a href="{{ route('debug') }}">{{ Config.get('firefly.version') }}</a>
|
||||||
</div>
|
</div>
|
||||||
<strong><a href="https://github.com/firefly-iii/firefly-iii">Firefly III</a></strong>
|
<strong><a href="https://github.com/firefly-iii/firefly-iii">Firefly III</a></strong>
|
||||||
<small class="text-muted">Developed by James Cole, the source code is licensed under the <a href="https://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0-or-later</a>.</small>
|
<small class="text-muted">© James Cole, <a href="https://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0-or-later</a>.</small>
|
||||||
{% if FF_IS_ALPHA %}<small class="text-danger"><br>You are running an ALPHA version. Be wary of bugs and issues.</small>{% endif %}
|
{% if FF_IS_ALPHA %}<small class="text-danger"><br>{{ 'is_alpha_warning'|_ }}</small>{% endif %}
|
||||||
{% if FF_IS_BETA %}<small class="text-warning"><br>You are running an BETA version. Be wary of bugs and issues.</small>{% endif %}
|
{% if FF_IS_BETA %}<small class="text-warning"><br>{{ 'is_beta_warning'|_ }}</small>{% endif %}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{% include('partials.control-bar') %}
|
{% include('partials.control-bar') %}
|
||||||
|
@@ -302,7 +302,7 @@
|
|||||||
<a href="{{ route('transactions.link.delete', [link.id]) }}" class="btn btn-danger"><i class="fa fa-trash"></i></a>
|
<a href="{{ route('transactions.link.delete', [link.id]) }}" class="btn btn-danger"><i class="fa fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ link.link }} "<a href="{{ route('transactions.show', link.group) }}"
|
<td>{{ trans('firefly.'~link.link) }} "<a href="{{ route('transactions.show', link.group) }}"
|
||||||
title="{{ link.description }}">{{ link.description }}</a>"
|
title="{{ link.description }}">{{ link.description }}</a>"
|
||||||
|
|
||||||
({{ link.amount|raw }})
|
({{ link.amount|raw }})
|
||||||
|
Reference in New Issue
Block a user