mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	Add rule error reporting to all rules.
This commit is contained in:
		| @@ -23,19 +23,47 @@ declare(strict_types=1); | ||||
| 
 | ||||
| 
 | ||||
| return [ | ||||
|     'main_message'                => 'Action ":action", present in rule ":rule", could not be applied to transaction #:group: :error', | ||||
|     'find_or_create_tag_failed'   => 'Could not find or create tag ":tag"', | ||||
|     'tag_already_added'           => 'Tag ":tag" is already linked to this transaction.', | ||||
|     'inspect_transaction'         => 'Inspect transaction ":title" @ Firefly III', | ||||
|     'inspect_rule'                => 'Inspect rule ":title" @ Firefly III', | ||||
|     'journal_other_user'          => 'This transaction doesn\'t belong to the user', | ||||
|     'journal_already_no_budget'   => 'This transaction has no budget, so it cannot be removed.', | ||||
|     'journal_already_no_category' => 'This transaction had no category, so it cannot be removed', | ||||
|     'journal_already_no_notes'    => 'This transaction had no notes, so they cannot be removed', | ||||
|     'journal_not_found'           => 'Firefly III can\'t find the requested transaction.', | ||||
|     'split_group'                 => 'Firefly III cannot execute this action on a transaction with multiple splits.', | ||||
|     'is_already_deposit'          => 'This transaction is already a deposit.', | ||||
|     'is_already_transfer'         => 'This transaction is already a transfer.', | ||||
|     'complex_error'               => 'Something complicated went wrong. Please inspect the logs of Firefly III.', | ||||
|     'no_valid_opposing'           => 'Conversion failed because there is no valid account named ":account".', | ||||
|     'main_message'                                => 'Action ":action", present in rule ":rule", could not be applied to transaction #:group: :error', | ||||
|     'find_or_create_tag_failed'                   => 'Could not find or create tag ":tag"', | ||||
|     'tag_already_added'                           => 'Tag ":tag" is already linked to this transaction', | ||||
|     'inspect_transaction'                         => 'Inspect transaction ":title" @ Firefly III', | ||||
|     'inspect_rule'                                => 'Inspect rule ":title" @ Firefly III', | ||||
|     'journal_other_user'                          => 'This transaction doesn\'t belong to the user', | ||||
|     'no_such_journal'                             => 'This transaction doesn\'t exist', | ||||
|     'journal_already_no_budget'                   => 'This transaction has no budget, so it cannot be removed', | ||||
|     'journal_already_no_category'                 => 'This transaction had no category, so it cannot be removed', | ||||
|     'journal_already_no_notes'                    => 'This transaction had no notes, so they cannot be removed', | ||||
|     'journal_not_found'                           => 'Firefly III can\'t find the requested transaction', | ||||
|     'split_group'                                 => 'Firefly III cannot execute this action on a transaction with multiple splits', | ||||
|     'is_already_withdrawal'                       => 'This transaction is already a withdrawal', | ||||
|     'is_already_deposit'                          => 'This transaction is already a deposit', | ||||
|     'is_already_transfer'                         => 'This transaction is already a transfer', | ||||
|     'is_not_transfer'                             => 'This transaction is not a transfer', | ||||
|     'complex_error'                               => 'Something complicated went wrong. Sorry about that. Please inspect the logs of Firefly III', | ||||
|     'no_valid_opposing'                           => 'Conversion failed because there is no valid account named ":account"', | ||||
|     'new_notes_empty'                             => 'The notes to be set are empty', | ||||
|     'unsupported_transaction_type_withdrawal'     => 'Firefly III cannot convert a ":type" to a withdrawal', | ||||
|     'unsupported_transaction_type_deposit'        => 'Firefly III cannot convert a ":type" to a deposit', | ||||
|     'unsupported_transaction_type_transfer'       => 'Firefly III cannot convert a ":type" to a transfer', | ||||
|     'already_has_source_asset'                    => 'This transaction already has ":name" as the source asset account', | ||||
|     'already_has_destination_asset'               => 'This transaction already has ":name" as the destination asset account', | ||||
|     'already_has_destination'                     => 'This transaction already has ":name" as the destination account', | ||||
|     'already_has_source'                          => 'This transaction already has ":name" as the source account', | ||||
|     'already_linked_to_subscription'              => 'The transaction is already linked to subscription ":name"', | ||||
|     'cannot_find_subscription'                    => 'Firefly III can\'t find subscription ":name"', | ||||
|     'no_notes_to_move'                            => 'The transaction has no notes to move to the description field', | ||||
|     'no_tags_to_remove'                           => 'The transaction has no tags to remove', | ||||
|     'cannot_find_tag'                             => 'Firefly III can\'t find tag ":tag"', | ||||
|     'cannot_find_asset'                           => 'Firefly III can\'t find asset account ":name"', | ||||
|     'cannot_find_accounts'                        => 'Firefly III can\'t find the source or destination account', | ||||
|     'cannot_find_source_transaction'              => 'Firefly III can\'t find the source transaction', | ||||
|     'cannot_find_destination_transaction'         => 'Firefly III can\'t find the destination transaction', | ||||
|     'cannot_find_source_transaction_account'      => 'Firefly III can\'t find the source transaction account', | ||||
|     'cannot_find_destination_transaction_account' => 'Firefly III can\'t find the destination transaction account', | ||||
|     'cannot_find_piggy'                           => 'Firefly III can\'t find a piggy bank named ":name"', | ||||
|     'no_link_piggy'                               => 'This transaction\'s accounts are not linked to the piggy bank, so no action will be taken', | ||||
|     'cannot_unlink_tag'                           => 'Tag ":tag" isn\'t linked to this transaction', | ||||
|     'cannot_find_budget'                          => 'Firefly III can\'t find budget ":name"', | ||||
|     'cannot_find_category'                        => 'Firefly III can\'t find category ":name"', | ||||
|     'cannot_set_budget'                           => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"', | ||||
| ]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user