mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 05:06:37 +00:00
Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop
This commit is contained in:
@@ -84,7 +84,7 @@ class MailError extends Job implements ShouldQueue
|
||||
$args,
|
||||
function (Message $message) use ($email) {
|
||||
if ('mail@example.com' !== $email) {
|
||||
$message->to($email, $email)->subject('Caught an error in Firefly III');
|
||||
$message->to($email, $email)->subject(trans('email.error_subject'));
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@@ -63,6 +63,6 @@ class AccessTokenCreatedMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.access-token-created-html')->text('emails.access-token-created-text')
|
||||
->subject('A new access token was created');
|
||||
->subject(trans('email.access_token_created_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,6 @@ class AdminTestMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.admin-test-html')->text('emails.admin-test-text')
|
||||
->subject('A test message from your Firefly III installation');
|
||||
->subject(trans('email.admin_test_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,6 @@ class ConfirmEmailChangeMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.confirm-email-change-html')->text('emails.confirm-email-change-text')
|
||||
->subject('Your Firefly III email address has changed');
|
||||
->subject(trans('email.email_change_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +67,6 @@ class OAuthTokenCreatedMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.oauth-client-created-html')->text('emails.oauth-client-created-text')
|
||||
->subject('A new OAuth client has been created');
|
||||
->subject(trans('email.oauth_created_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,6 @@ class RegisteredUser extends Mailable
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.registered-html')->text('emails.registered-text')->subject('Welcome to Firefly III!');
|
||||
return $this->view('emails.registered-html')->text('emails.registered-text')->subject(trans('email.registered_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ class ReportNewJournalsMail extends Mailable
|
||||
$this->transform();
|
||||
|
||||
return $this->view('emails.report-new-journals-html')->text('emails.report-new-journals-text')
|
||||
->subject($subject);
|
||||
->subject(trans_choice('email.new_journals_subject', $this->groups->count() ));
|
||||
}
|
||||
|
||||
private function transform(): void
|
||||
|
||||
@@ -60,6 +60,6 @@ class RequestedNewPassword extends Mailable
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.password-html')->text('emails.password-text')->subject('Your password reset request');
|
||||
return $this->view('emails.password-html')->text('emails.password-text')->subject(trans('email.reset_pw_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,6 +68,6 @@ class UndoEmailChangeMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.undo-email-change-html')->text('emails.undo-email-change-text')
|
||||
->subject('Your Firefly III email address has changed');
|
||||
->subject(trans('email.email_change_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user