Feature #39074 ยป 0001-Localize-the-subject-and-body-of-the-test-email.patch
| app/models/mailer.rb | ||
|---|---|---|
|
def test_email(user)
|
||
|
@url = url_for(:controller => 'welcome')
|
||
|
mail :to => user,
|
||
|
:subject => 'Redmine test'
|
||
|
:subject => l(:mail_subject_test_email)
|
||
|
end
|
||
|
# Send a test email to user. Will raise error that may occur during delivery.
|
||
| app/views/mailer/test_email.html.erb | ||
|---|---|---|
|
<p>This is a test email sent by Redmine.<br />
|
||
|
<p><%= l(:mail_body_test_email) %><br />
|
||
|
Redmine URL: <%= link_to @url, @url %></p>
|
||
| app/views/mailer/test_email.text.erb | ||
|---|---|---|
|
This is a test email sent by Redmine.
|
||
|
<%= l(:mail_body_test_email) %>
|
||
|
Redmine URL: <%= @url %>
|
||
| config/locales/en.yml | ||
|---|---|---|
|
mail_body_security_notification_notify_disabled: "Email address %{value} no longer receives notifications."
|
||
|
mail_body_settings_updated: "The following settings were changed:"
|
||
|
mail_body_password_updated: "Your password has been changed."
|
||
|
mail_subject_test_email: "Redmine test"
|
||
|
mail_body_test_email: "This is a test email sent by Redmine."
|
||
|
mail_destroy_project_failed: Project %{value} could not be deleted.
|
||
|
mail_destroy_project_successful: Project %{value} was deleted successfully.
|
||
|
mail_destroy_project_with_subprojects_successful: Project %{value} and its subprojects were deleted successfully.
|
||