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

[#64347] use proper translation for field format

Tobias Dillmann385cd588c412
diff --git a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb
index 8bcc2cf52d0..608e951411d 100644
--- a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb
+++ b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb
@@ -13,7 +13,7 @@
end
title_container.with_column(pt: 1, mr: 2, data: { test_selector: "custom-field-type" }) do
render(Primer::Beta::Text.new(font_size: :small, color: :subtle)) do
- t(@project_custom_field.field_format)
+ t("label_#{@project_custom_field.field_format}")
end
end
if @project_custom_field.required?
diff --git a/spec/features/projects/project_custom_fields/settings/mapping_spec.rb b/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
index e30f1ccb76f..50bbd09f72a 100644
--- a/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
+++ b/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
@@ -142,7 +142,7 @@ RSpec.describe "Projects custom fields mapping via project settings", :js do
end
within_custom_field_container(string_project_custom_field) do
expect(page).to have_content("String field")
- expect_type("String")
+ expect_type("Text")
expect_unchecked_state
end
end