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

Put feature names under the same namespace

Oliver Güntherb75d6336b40f
diff --git a/app/components/enterprise_edition/plan_for_feature.rb b/app/components/enterprise_edition/plan_for_feature.rb
index 192884ca65a..eacc80126d7 100644
--- a/app/components/enterprise_edition/plan_for_feature.rb
+++ b/app/components/enterprise_edition/plan_for_feature.rb
@@ -42,7 +42,7 @@ module EnterpriseEdition
end
def default_title
- I18n.t(feature_key, scope: :enterprise_features)
+ I18n.t(feature_key, scope: :"ee.features")
end
def description
diff --git a/app/helpers/enterprise_helper.rb b/app/helpers/enterprise_helper.rb
index 63f7b42d014..c0c86946239 100644
--- a/app/helpers/enterprise_helper.rb
+++ b/app/helpers/enterprise_helper.rb
@@ -53,7 +53,7 @@ module EnterpriseHelper
def enterprise_plan_additional_features(enterprise_token)
(enterprise_token.try(:features) || [])
- .filter_map { |feature| I18n.t(feature, scope: [:enterprise_features], default: nil) }
+ .filter_map { |feature| I18n.t(feature, scope: :"ee.features", default: nil) }
.sort
.join(", ")
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index e316084f8d1..95cd5a4ccd7 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2026,6 +2026,30 @@ en:
direction: ltr
ee:
+ features:
+ baseline_comparison: Baseline Comparisons
+ board_view: Advanced Boards
+ conditional_highlighting: Conditional Highlighting
+ custom_actions: Custom Actions
+ custom_field_hierarchies: Custom fields of type hierarchy
+ customize_life_cycle: Customize Life Cycle
+ date_alerts: Date Alerts
+ define_custom_style: Custom theme and logo
+ edit_attribute_groups: Edit Attribute Groups
+ gantt_pdf_export: Gantt PDF Export
+ grid_widget_wp_graph: Grid Widget Work Package Graph
+ ldap_groups: LDAP users and group sync
+ one_drive_sharepoint_file_storage: OneDrive/SharePoint File Storage
+ placeholder_users: Placeholder Users
+ project_list_sharing: Project List Sharing
+ readonly_work_packages: Readonly Work Packages
+ sso_auth_providers: Single sign-on
+ team_planner_view: Team Planner View
+ two_factor_authentication: 2FA Authentication
+ virus_scanning: Antivirus Scanning
+ work_package_query_relation_columns: Work Package Query Relation Columns
+ work_package_sharing: Share work packages with external users
+ work_package_subject_generation: Work Package Subject Generation
upsale:
title: "Enterprise add-on"
plan_title: "Enterprise %{plan} add-on"
@@ -4676,28 +4700,3 @@ en:
enterprise_plans:
legacy_enterprise: "Enterprise Plan"
-
- enterprise_features:
- baseline_comparison: Baseline Comparisons
- board_view: Advanced Boards
- conditional_highlighting: Conditional Highlighting
- custom_actions: Custom Actions
- custom_field_hierarchies: Custom fields of type hierarchy
- customize_life_cycle: Customize Life Cycle
- date_alerts: Date Alerts
- define_custom_style: Custom theme and logo
- edit_attribute_groups: Edit Attribute Groups
- gantt_pdf_export: Gantt PDF Export
- grid_widget_wp_graph: Grid Widget Work Package Graph
- ldap_groups: LDAP users and group sync
- one_drive_sharepoint_file_storage: OneDrive/SharePoint File Storage
- placeholder_users: Placeholder Users
- project_list_sharing: Project List Sharing
- readonly_work_packages: Readonly Work Packages
- sso_auth_providers: Single sign-on
- team_planner_view: Team Planner View
- two_factor_authentication: 2FA Authentication
- virus_scanning: Antivirus Scanning
- work_package_query_relation_columns: Work Package Query Relation Columns
- work_package_sharing: Share work packages with external users
- work_package_subject_generation: Work Package Subject Generation
diff --git a/spec/components/enterprise_edition/banner_component_spec.rb b/spec/components/enterprise_edition/banner_component_spec.rb
index 5873e39e66d..171aaa8b71e 100644
--- a/spec/components/enterprise_edition/banner_component_spec.rb
+++ b/spec/components/enterprise_edition/banner_component_spec.rb
@@ -60,10 +60,10 @@ RSpec.describe EnterpriseEdition::BannerComponent, type: :component do
let(:translations) do
{
ee: {
+ features: {
+ some_enterprise_feature: "Enterprise feature translation"
+ },
upsale: i18n_upsale
- },
- enterprise_features: {
- some_enterprise_feature: "Enterprise feature translation"
}
}
end
@@ -215,8 +215,10 @@ RSpec.describe EnterpriseEdition::BannerComponent, type: :component do
}
}
},
- enterprise_features: {
- some_enterprise_feature: "Enterprise feature translation"
+ ee: {
+ features: {
+ some_enterprise_feature: "Enterprise feature translation"
+ }
}
}
end