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

Add translations to custom empty state component

Aaron Contreras9cf1e0880135
diff --git a/app/components/shares/project_queries/empty_state_component.rb b/app/components/shares/project_queries/empty_state_component.rb
index 228cd84d742..36e986bcb26 100644
--- a/app/components/shares/project_queries/empty_state_component.rb
+++ b/app/components/shares/project_queries/empty_state_component.rb
@@ -42,12 +42,12 @@ module Shares
attr_reader :strategy, :entity
- def blankslate_config # rubocop:disable Metrics/AbcSize
+ def blankslate_config
@blankslate_config ||= {}.tap do |config|
if params[:filters].blank?
config[:icon] = :people
- config[:heading_text] = "ABC"
- config[:description_text] = I18n.t("sharing.text_empty_state_description", entity: @entity.class.model_name.human)
+ config[:heading_text] = I18n.t("sharing.project_queries.text_empty_state_header")
+ config[:description_text] = I18n.t("sharing.project_queries.text_empty_state_description")
else
config[:icon] = :search
config[:heading_text] = I18n.t("sharing.text_empty_search_header")
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 33335389eea..5eeb15bf996 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3671,7 +3671,9 @@ en:
additional_privileges_project: "Might have additional privileges (as project member)"
additional_privileges_group: "Might have additional privileges (as group member)"
additional_privileges_project_or_group: "Might have additional privileges (as project or group member)"
-
+ project_queries:
+ text_empty_state_header: "Shared with everyone"
+ text_empty_state_description: "Everyone can view this project list. You can also add individual users with extra permissions."
working_days:
info: >
Days that are not selected are skipped when scheduling work packages (and not included in the day count).