mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
Fixes to export [skip ci]
This commit is contained in:
parent
9a1710eb27
commit
deb140e3bc
@ -83,9 +83,16 @@ class AttachmentCollector extends BasicCollector implements CollectorInterface
|
||||
{
|
||||
/** @var TransactionJournal $journal */
|
||||
$journal = $attachment->attachable;
|
||||
$string = 'Attachment #' . $attachment->id . ' is part of ' . strtolower($journal->transactionType->type) . ' #' . $journal->id
|
||||
. ', with description "' . $journal->description . '". This transaction was for ' . Amount::formatJournal($journal, false) .
|
||||
' and occured on ' . $journal->date->formatLocalized(config('config.month_and_day')) . "\n\n";
|
||||
$args = [
|
||||
'attachment_name' => $attachment->filename,
|
||||
'attachment_id' => $attachment->id,
|
||||
'type' => strtolower($journal->transactionType->type),
|
||||
'description' => $journal->description,
|
||||
'journal_id' => $journal->id,
|
||||
'date' => $journal->date->formatLocalized(trans('config.month_and_day')),
|
||||
'amount' => Amount::formatJournal($journal, false),
|
||||
];
|
||||
$string = trans('firefly.attachment_explanation', $args) . "\n";
|
||||
$this->explanationString .= $string;
|
||||
|
||||
}
|
||||
|
@ -74,6 +74,7 @@ return [
|
||||
'export_status_created_zip_file' => 'Created a zip file!',
|
||||
'export_status_finished' => 'Export has succesfully finished! Yay!',
|
||||
'export_data_please_wait' => 'Please wait...',
|
||||
'attachment_explanation' => 'The file called \':attachment_name\' (#:attachment_id) was originally uploaded to :type \':description\' (#:journal_id) dated :date for the amount of :amount.',
|
||||
|
||||
// rules
|
||||
'rules' => 'Rules',
|
||||
|
Loading…
Reference in New Issue
Block a user