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

separate will_remove_the_users_role_html into will_remove_the_users_role and however_shares_with_user_html

Ivan Kuchin87180ac20a2b
diff --git a/app/components/members/delete_member_dialog_component.html.erb b/app/components/members/delete_member_dialog_component.html.erb
index b76e885a0c9..0209a1780d4 100644
--- a/app/components/members/delete_member_dialog_component.html.erb
+++ b/app/components/members/delete_member_dialog_component.html.erb
@@ -34,7 +34,10 @@ See COPYRIGHT and LICENSE files for more details.
<% when can_delete_roles? && can_delete_shares? %>
<% dialog.with_body do %>
<% if can_delete? %>
- <%= paragraph { scoped_t(:will_remove_the_users_role_html, shared_work_packages_link:) } %>
+ <%= paragraph do %>
+ <%= scoped_t(:will_remove_the_users_role) %>
+ <%= scoped_t(:however_shares_with_user_html, shared_work_packages_link:) %>
+ <% end %>
<%= paragraph do %>
<%= scoped_t(:would_you_like_to_remove_the_shares_too) %>
<%= scoped_t(:will_not_affect_inherited_shares) if inherited_shared_work_packages_count? %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 011c105e1d2..08eaca7f568 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -359,7 +359,8 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
groups: "Groups"
delete_member_dialog:
title: "Remove member"
- will_remove_the_users_role_html: "This will remove the user’s role from this project. However, %{shared_work_packages_link} have also been shared with this user."
+ will_remove_the_users_role: "This will remove the user’s role from this project."
+ however_shares_with_user_html: "However, %{shared_work_packages_link} have also been shared with this user."
would_you_like_to_remove_the_shares_too: "A user that has been removed as member can still access shared work packages. Would you like to remove the shares too?"
will_not_affect_inherited_shares: "(This will not affect work packages shared with their group)."
can_remove_direct_but_not_shared_role: "You can remove this user as a direct project member but a group they are in is also a member of this project, so they will continue being a member via the group."