From 2dd379c0ce79c3caf56e4e89ee74bdfebd9ddc7c Mon Sep 17 00:00:00 2001 From: Sonja Mathias Date: Thu, 21 Sep 2023 14:47:42 +0200 Subject: [PATCH] Fix project selector text Now object type text used in help text takes translations into account --- app/views/projects/_project_selector.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/_project_selector.html.erb b/app/views/projects/_project_selector.html.erb index dd9e624c7e..b89c0dc3bd 100644 --- a/app/views/projects/_project_selector.html.erb +++ b/app/views/projects/_project_selector.html.erb @@ -30,7 +30,7 @@ title = t('project').pluralize title += '*'.html_safe unless allow_nil - object_type_text = resource.class.name.underscore.humanize + object_type_text = text_for_resource(resource) %> <%= folding_panel(title, false, id: "add_projects_form",