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

remove now duplicate i18n key

ulfertsdf386cf04050
diff --git a/app/components/shares/project_queries/upsale_component.html.erb b/app/components/shares/project_queries/upsale_component.html.erb
index 1f0a77a9188..946bbda996a 100644
--- a/app/components/shares/project_queries/upsale_component.html.erb
+++ b/app/components/shares/project_queries/upsale_component.html.erb
@@ -1,7 +1,7 @@
<%=
modal_content.with_row(data: { 'test-selector': 'op-share-dialog-upsale-block' }) do
render Primer::OpenProject::FeedbackMessage.new(icon_arguments: { icon: :"op-enterprise-addons", classes: "upsale-colored" }, border: true) do |component|
- component.with_heading(tag: :h2, classes: 'upsale-colored').with_content(I18n.t(:label_enterprise_addon))
+ component.with_heading(tag: :h2, classes: 'upsale-colored').with_content(I18n.t(:"ee.upsale.title"))
component.with_description { I18n.t('sharing.project_queries.upsale.message') }
href = "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=project-list-sharing-modal"
diff --git a/app/components/shares/work_packages/modal_upsale_component.html.erb b/app/components/shares/work_packages/modal_upsale_component.html.erb
index f1be3ab6dc3..036bc35a673 100644
--- a/app/components/shares/work_packages/modal_upsale_component.html.erb
+++ b/app/components/shares/work_packages/modal_upsale_component.html.erb
@@ -1,7 +1,7 @@
<%=
component_wrapper(tag: 'turbo-frame') do
render Primer::OpenProject::FeedbackMessage.new(icon_arguments: { icon: :"op-enterprise-addons", classes: "upsale-colored" }, border: true) do |component|
- component.with_heading(tag: :h2, classes: 'upsale-colored').with_content(I18n.t(:label_enterprise_addon))
+ component.with_heading(tag: :h2, classes: 'upsale-colored').with_content(I18n.t(:"ee.upsale.title"))
component.with_description { I18n.t('mail.sharing.work_packages.enterprise_text') }
href = "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=work-package-sharing-modal"
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index 1c9d15ae208..01012b0b038 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -224,7 +224,7 @@ module CustomFieldsHelper
label = format.label.is_a?(Proc) ? format.label.call : I18n.t(format.label)
show_enterprise_text = format_string == "hierarchy" && !EnterpriseToken.allows_to?(:custom_field_hierarchies)
- suffix = show_enterprise_text ? " (#{I18n.t(:label_enterprise_addon)})" : ""
+ suffix = show_enterprise_text ? " (#{I18n.t(:"ee.upsale.title")})" : ""
"#{label}#{suffix}"
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 4170f0c6389..e6b92a4e01c 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2407,7 +2407,6 @@ en:
label_enterprise_active_users: "%{current}/%{limit} booked active users"
label_enterprise_edition: "Enterprise edition"
label_enterprise_support: "Enterprise support"
- label_enterprise_addon: "Enterprise add-on"
label_environment: "Environment"
label_estimates_and_progress: "Estimates and progress"
label_equals: "is"
diff --git a/spec/support/components/sharing/share_modal.rb b/spec/support/components/sharing/share_modal.rb
index d880da1ac96..11b846cb1b3 100644
--- a/spec/support/components/sharing/share_modal.rb
+++ b/spec/support/components/sharing/share_modal.rb
@@ -380,7 +380,7 @@ module Components
def expect_upsale_banner
within_modal do
expect(page)
- .to have_text(I18n.t(:label_enterprise_addon))
+ .to have_text(I18n.t(:"ee.upsale.title"))
end
end