Merge pull request #4841 from alex6480/develop

Localize expand and collapse button for splits
This commit is contained in:
James Cole 2021-06-19 08:10:01 +02:00 committed by GitHub
commit 3e88bf4692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -100,13 +100,13 @@
</div>
<div class="btn btn-light btn-sm" v-if="data.item.split && data.item.split_parent === null && data.item.collapsed === true"
v-on:click="toggleCollapse(data.item)">
<span class="fa fa-caret-down"></span>
Expand split
<i class="fa fa-caret-down"></i>
{{ $t('firefly.transaction_expand_split') }}
</div>
<div class="btn btn-light btn-sm" v-else-if="data.item.split && data.item.split_parent === null && data.item.collapsed === false"
v-on:click="toggleCollapse(data.item)">
<span class="fa fa-caret-up"></span>
Collapse split
<i class="fa fa-caret-up"></i>
{{ $t('firefly.transaction_collapse_split') }}
</div>
</template>
<template #cell(category)="data">

View File

@ -15,6 +15,8 @@
"balance": "Balance",
"transaction_journal_extra": "Extra information",
"transaction_journal_meta": "Meta information",
"transaction_expand_split": "Expand split",
"transaction_collapse_split": "Collapse split",
"basic_journal_information": "Basic transaction information",
"bills_to_pay": "Bills to pay",
"left_to_spend": "Left to spend",

View File

@ -1691,6 +1691,8 @@ return [
'store_as_new' => 'Store as a new transaction instead of updating.',
'reset_after' => 'Reset form after submission',
'errors_submission' => 'There was something wrong with your submission. Please check out the errors.',
'transaction_expand_split' => 'Expand split',
'transaction_collapse_split' => 'Collapse split',
// object groups
'default_group_title_name' => '(ungrouped)',