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

Take care that only the first letter is capitalized and the rest is untouched

Henriette Darge1e403fed502e
diff --git a/app/components/work_package_relations_tab/index_component.html.erb b/app/components/work_package_relations_tab/index_component.html.erb
index c12694bc30e..b99da73b5dc 100644
--- a/app/components/work_package_relations_tab/index_component.html.erb
+++ b/app/components/work_package_relations_tab/index_component.html.erb
@@ -22,7 +22,7 @@
Relation::TYPES.each do |relation_type, type_configuration_hash|
label_key = "#{I18N_NAMESPACE}.relations.#{type_configuration_hash[:name]}_singular"
menu.with_item(
- label: t(label_key).capitalize,
+ label: t(label_key).upcase_first,
href: new_relation_path(relation_type:),
test_selector: new_button_test_selector(relation_type:),
content_arguments: {
@@ -36,7 +36,7 @@
if should_render_add_child?
menu.with_item(
- label: t("#{I18N_NAMESPACE}.relations.label_child_singular").capitalize,
+ label: t("#{I18N_NAMESPACE}.relations.label_child_singular").upcase_first,
href: new_work_package_children_relation_path(@work_package),
test_selector: new_button_test_selector(relation_type: :child),
content_arguments: {