Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix: Rename `mail_body_wiki_content_*` to `mail_body_wiki_page_*`

Aaron Contreras44df33c8b965
diff --git a/app/views/user_mailer/wiki_page_added.html.erb b/app/views/user_mailer/wiki_page_added.html.erb
index 16ae1578d0e..bcd602f6a9f 100644
--- a/app/views/user_mailer/wiki_page_added.html.erb
+++ b/app/views/user_mailer/wiki_page_added.html.erb
@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<p>
- <%=raw t(:mail_body_wiki_content_added,
+ <%=raw t(:mail_body_wiki_page_added,
id: link_to(@wiki_page.title, project_wiki_url(@wiki_page.project, @wiki_page)),
author: @wiki_page.author) %><br />
<em><%= @wiki_page.journals.last.notes %></em>
diff --git a/app/views/user_mailer/wiki_page_updated.html.erb b/app/views/user_mailer/wiki_page_updated.html.erb
index 1535ae7f520..93f7404d95f 100644
--- a/app/views/user_mailer/wiki_page_updated.html.erb
+++ b/app/views/user_mailer/wiki_page_updated.html.erb
@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<p>
- <%=raw t(:mail_body_wiki_content_updated,
+ <%=raw t(:mail_body_wiki_page_updated,
id: link_to(@wiki_page.title, project_wiki_url(@wiki_page.project, @wiki_page)),
author: @wiki_page.journals.last.user) %><br />
<em><%= @wiki_page.journals.last.notes %></em>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 8390e5ae991..b20a4f7c10b 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2282,8 +2282,8 @@ en:
mail_body_register_ending: "Stay connected! Kind regards,"
mail_body_reminder: "%{count} work package(s) that are assigned to you are due in the next %{days} days:"
mail_body_group_reminder: "%{count} work package(s) that are assigned to group \"%{group}\" are due in the next %{days} days:"
- mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
- mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
+ mail_body_wiki_page_added: "The '%{id}' wiki page has been added by %{author}."
+ mail_body_wiki_page_updated: "The '%{id}' wiki page has been updated by %{author}."
mail_subject_account_activation_request: "%{value} account activation request"
mail_subject_backup_ready: "Your backup is ready"
mail_subject_backup_token_reset: "Backup token reset"