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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
renamed some dialog i18n keys for consistency and clarity
Ivan Kuchin986ed4637efc
diff --git a/app/components/members/delete_member_dialog_component.html.erb b/app/components/members/delete_member_dialog_component.html.erbindex efccd2d22b5..8bee03172c6 100644--- a/app/components/members/delete_member_dialog_component.html.erb+++ b/app/components/members/delete_member_dialog_component.html.erb@@ -34,27 +34,27 @@ 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(:can_remove_direct_but_not_shared_role) } %>- <%= paragraph { scoped_t(:also_user_has_shares_html, shared_work_packages_link:, count: shared_work_packages_count) } %>+ <%= paragraph { scoped_t(:can_remove_direct_but_not_shared_roles) } %>+ <%= paragraph { scoped_t(:also_work_packages_shared_with_user_html, shared_work_packages_link:, count: shared_work_packages_count) } %><%= paragraph do %>- <%= scoped_t(:remove_just_user_or_shares_too) %>+ <%= scoped_t(:remove_project_membership_or_work_package_shares_too) %><%= scoped_t(:will_not_affect_inherited_shares) if inherited_shared_work_packages_count? %><% end %><% elsif principal.is_a?(Group) %><%= paragraph do %><%= scoped_t(:will_remove_the_groups_role) %>- <%= scoped_t(:however_shares_with_group_html, shared_work_packages_link:, count: shared_work_packages_count) %>+ <%= scoped_t(:however_work_packages_shared_with_group_html, shared_work_packages_link:, count: shared_work_packages_count) %><% end %><%= paragraph do %>- <%= scoped_t(:would_you_like_to_remove_the_shares_with_group_too) %>+ <%= scoped_t(:remove_work_packages_shared_with_group_too) %><% end %><% else %><%= paragraph do %><%= scoped_t(:will_remove_the_users_role) %>- <%= scoped_t(:however_shares_with_user_html, shared_work_packages_link:, count: shared_work_packages_count) %>+ <%= scoped_t(:however_work_packages_shared_with_user_html, shared_work_packages_link:, count: shared_work_packages_count) %><% end %><%= paragraph do %>- <%= scoped_t(:would_you_like_to_remove_the_shares_with_user_too) %>+ <%= scoped_t(:remove_work_packages_shared_with_user_too) %><%= scoped_t(:will_not_affect_inherited_shares) if inherited_shared_work_packages_count? %><% end %><% end %>@@ -68,11 +68,11 @@ See COPYRIGHT and LICENSE files for more details.<% when can_delete_roles? %><% dialog.with_body do %><% if !can_delete? %>- <%= paragraph { scoped_t(:can_remove_direct_but_not_shared_role) } %>+ <%= paragraph { scoped_t(:can_remove_direct_but_not_shared_roles) } %><% elsif principal.is_a?(Group) %>- <%= paragraph { scoped_t(:will_remove_all_access_priveleges_group) } %>+ <%= paragraph { scoped_t(:will_remove_all_group_access_priveleges) } %><% else %>- <%= paragraph { scoped_t(:will_remove_all_access_priveleges_user) } %>+ <%= paragraph { scoped_t(:will_remove_all_user_access_priveleges) } %><% end %><% end %>@@ -82,11 +82,11 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% else %><% dialog.with_body do %>- <%= paragraph { scoped_t(:cannot_delete_group_member) } %>+ <%= paragraph { scoped_t(:cannot_delete_inherited_membership) } %><% if may_manage_user? %>- <%= paragraph { scoped_t(:cannot_delete_group_member_note_admin_html, administration_settings_link:) } %>+ <%= paragraph { scoped_t(:cannot_delete_inherited_membership_note_admin_html, administration_settings_link:) } %><% else %>- <%= paragraph { scoped_t(:cannot_delete_group_member_note_non_admin) } %>+ <%= paragraph { scoped_t(:cannot_delete_inherited_membership_note_non_admin) } %><% end %><% end %>diff --git a/app/components/members/delete_work_package_shares_dialog_component.html.erb b/app/components/members/delete_work_package_shares_dialog_component.html.erbindex db2c8d063ff..ebd80af1a1c 100644--- a/app/components/members/delete_work_package_shares_dialog_component.html.erb+++ b/app/components/members/delete_work_package_shares_dialog_component.html.erb@@ -67,7 +67,7 @@ See COPYRIGHT and LICENSE files for more details.<% if inherited_shared_work_packages_count? %><%= paragraph do %><%= scoped_t(:shared_with_this_user_html, all_shared_work_packages_link:, count: all_shared_work_packages_count) %>- <%= scoped_t(:will_revoke_access_but_for_inherited) %>+ <%= scoped_t(:will_revoke_directly_granted_access) %><% end %><% elsif principal.is_a?(Group) %><%= paragraph do %>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 3bef1f4140a..6522056c553 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -361,25 +361,25 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}title: "Remove member"will_remove_the_users_role: "This will remove the user’s role from this project."will_remove_the_groups_role: "This will remove the group role from this project."- however_shares_with_user_html:+ however_work_packages_shared_with_user_html:one: "However, %{shared_work_packages_link} has also been shared with this user."other: "However, %{shared_work_packages_link} have also been shared with this user."- however_shares_with_group_html:+ however_work_packages_shared_with_group_html:one: "However, %{shared_work_packages_link} has also been shared with this group."other: "However, %{shared_work_packages_link} have also been shared with this group."- would_you_like_to_remove_the_shares_with_user_too: "A user that has been removed as member can still access shared work packages. Would you like to remove the shares too?"- would_you_like_to_remove_the_shares_with_group_too: "A group that has been removed as member can still access shared work packages. Would you like to remove the shares too?"+ remove_work_packages_shared_with_user_too: "A user that has been removed as member can still access shared work packages. Would you like to remove the shares too?"+ remove_work_packages_shared_with_group_too: "A group 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."- also_user_has_shares_html:+ can_remove_direct_but_not_shared_roles: "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."+ also_work_packages_shared_with_user_html:one: "Also, %{shared_work_packages_link} has been shared with this user."other: "Also, %{shared_work_packages_link} have been shared with this user."- remove_just_user_or_shares_too: "Do you want to remove just the user as a direct member (and keep the shares) or remove the work package shares too?"- will_remove_all_access_priveleges_user: "Deleting this member will remove all access privileges of the user to the project. The user will still exist as part of the instance."- will_remove_all_access_priveleges_group: "Deleting this member will remove all access privileges of the group to the project. The group will still exist as part of the instance."- cannot_delete_group_member: "You cannot delete this member because they belong to a group that is itself a member of this project."- cannot_delete_group_member_note_admin_html: "You can either remove the group as a member of the project or this specific member from the group in the %{administration_settings_link}."- cannot_delete_group_member_note_non_admin: "You can either remove the group as a member of the project or contact your administrator to remove this specific member from the group."+ remove_project_membership_or_work_package_shares_too: "Do you want to remove just the user as a direct member (and keep the shares) or remove the work package shares too?"+ will_remove_all_user_access_priveleges: "Deleting this member will remove all access privileges of the user to the project. The user will still exist as part of the instance."+ will_remove_all_group_access_priveleges: "Deleting this member will remove all access privileges of the group to the project. The group will still exist as part of the instance."+ cannot_delete_inherited_membership: "You cannot delete this member because they belong to a group that is itself a member of this project."+ cannot_delete_inherited_membership_note_admin_html: "You can either remove the group as a member of the project or this specific member from the group in the %{administration_settings_link}."+ cannot_delete_inherited_membership_note_non_admin: "You can either remove the group as a member of the project or contact your administrator to remove this specific member from the group."delete_work_package_shares_dialog:title: "Revoke work package shares"shared_with_this_user_html:@@ -397,7 +397,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}cannot_remove_inherited_with_role: "The work packages shares with role %{shared_role_name} are shared via groups and cannot be removed."cannot_remove_inherited_note_admin_html: "You can either revoke the share to the group or remove this specific member from the group in the %{administration_settings_link}."cannot_remove_inherited_note_non_admin: "You can either revoke the share to the group or contact your administrator to remove this specific member from the group."- will_revoke_access_but_for_inherited: "This action will revoke their access to all of them, but the work packages shared with a group."+ will_revoke_directly_granted_access: "This action will revoke their access to all of them, but the work packages shared with a group."will_revoke_access_to_all: "This action will revoke their access to all of them."my: