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

[#55678] Rename "Projects" tab to "Enabled in projects" (#15846)

Kabiru Mwenja82bd63dfe494
diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb
index b6971848f72..d77783af62a 100644
--- a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb
+++ b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
selected: project_custom_field_project_mappings_selected?,
href: project_mappings_admin_settings_project_custom_field_path(@custom_field)
) do |tab|
- tab.with_text { I18n.t(:label_project_plural) }
+ tab.with_text { I18n.t("projects.settings.project_custom_fields.project_mappings.header") }
end
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 7b85f8fc56e..2f76bbc9e77 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -336,6 +336,8 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
new_project_mapping_form:
add_projects: Add projects
include_sub_projects: Include sub-projects
+ project_mappings:
+ header: Enabled in projects
types:
no_results_title_text: There are currently no types available.
form:
diff --git a/spec/features/admin/project_custom_fields/edit_spec.rb b/spec/features/admin/project_custom_fields/edit_spec.rb
index a366a69abdf..a32eb038369 100644
--- a/spec/features/admin/project_custom_fields/edit_spec.rb
+++ b/spec/features/admin/project_custom_fields/edit_spec.rb
@@ -59,7 +59,7 @@ RSpec.describe "Edit project custom fields", :js do
it "shows tab navigation" do
within_test_selector("project_attribute_detail_header") do
expect(page).to have_link("Details")
- expect(page).to have_link("Projects")
+ expect(page).to have_link("Enabled in projects")
end
end
diff --git a/spec/features/admin/project_custom_fields/project_mappings_spec.rb b/spec/features/admin/project_custom_fields/project_mappings_spec.rb
index 10a71e94345..a1e32cae731 100644
--- a/spec/features/admin/project_custom_fields/project_mappings_spec.rb
+++ b/spec/features/admin/project_custom_fields/project_mappings_spec.rb
@@ -70,7 +70,7 @@ RSpec.describe "Project Custom Field Mappings", :js do
aggregate_failures "shows tab navigation" do
within_test_selector("project_attribute_detail_header") do
expect(page).to have_link("Details")
- expect(page).to have_link("Projects")
+ expect(page).to have_link("Enabled in projects")
end
end