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