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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Merge pull request #18350 from top4ek/fix_sort_component
Alexander58644845d66d
diff --git a/app/components/queries/sort_by_component.html.erb b/app/components/queries/sort_by_component.html.erbindex b2d65f1cda8..37d80185e59 100644--- a/app/components/queries/sort_by_component.html.erb+++ b/app/components/queries/sort_by_component.html.erb@@ -1,5 +1,5 @@<%= render(Primer::Beta::Heading.new(tag: :h5)) { I18n.t("queries.configure_view.sort_by.automatic.heading") } %>-<%= render(Primer::Beta::Text.new(font_size: :small, color: :subtle)) { I18n.t("queries.configure_view.sort_by.automatic.description", plural: queried_model_name.plural) } %>+<%= render(Primer::Beta::Text.new(font_size: :small, color: :subtle)) { I18n.t("queries.configure_view.sort_by.automatic.description", plural: queried_plural_model_human_name) } %><div data-controller="sort-by-config" data-application-target="dynamic"><%= hidden_field_tag :sortBy, current_orders, data: { "sort-by-config-target" => "sortByField" } %><%= render(Primer::OpenProject::FlexLayout.new(data: { "sort-by-config-target" => "inputRowContainer" })) do |layout| %>diff --git a/app/components/queries/sort_by_component.rb b/app/components/queries/sort_by_component.rbindex c5f2da7638b..1ed30aa31df 100644--- a/app/components/queries/sort_by_component.rb+++ b/app/components/queries/sort_by_component.rb@@ -40,8 +40,8 @@ class Queries::SortByComponent < ApplicationComponent3end- def queried_model_name- query.class.model.model_name+ def queried_plural_model_human_name+ query.class.model.model_name.human(count: :other).downcaseenddef available_ordersdiff --git a/config/locales/en.yml b/config/locales/en.ymlindex a678de81210..2a7dc3e6ec6 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1594,7 +1594,9 @@ en:one: "Notification"other: "Notifications"placeholder_user: "Placeholder user"- project: "Project"+ project:+ one: "Project"+ other: "Projects"project_query:one: "Project list"other: "Project lists"