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 interpolations

Klaus Zandersaa168597231f
diff --git a/app/components/shares/invite_user_form_component.html.erb b/app/components/shares/invite_user_form_component.html.erb
index 917b9c8ce54..5900c1a2ef4 100644
--- a/app/components/shares/invite_user_form_component.html.erb
+++ b/app/components/shares/invite_user_form_component.html.erb
@@ -96,7 +96,7 @@
end
end
else
- render(Primer::Alpha::Banner.new(icon: :info)) { I18n.t('sharing.denied', entity: @entity.model_name.human(count: 2)) }
+ render(Primer::Alpha::Banner.new(icon: :info)) { I18n.t('sharing.denied', entities: @entity.model_name.human(count: 2)) }
end
end
%>
diff --git a/spec/support/components/work_packages/share_modal.rb b/spec/support/components/work_packages/share_modal.rb
index f67d395db94..ef9b4f67fdb 100644
--- a/spec/support/components/work_packages/share_modal.rb
+++ b/spec/support/components/work_packages/share_modal.rb
@@ -190,7 +190,7 @@ module Components
def expect_blankslate
within_modal do
- expect(page).to have_text(I18n.t("sharing.text_empty_state_description"))
+ expect(page).to have_text(I18n.t("sharing.text_empty_state_description", entity: WorkPackage.model_name.human))
end
end
@@ -324,7 +324,7 @@ module Components
def expect_no_invite_option
within_modal do
expect(page)
- .to have_text(I18n.t("work_package.permissions.denied"))
+ .to have_text(I18n.t("sharing.denied", entities: WorkPackage.model_name.human(count: 2)))
end
end