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

Fix favored name -> favorite

Oliver Günther28c399c53779
diff --git a/app/components/projects/table_component.html.erb b/app/components/projects/table_component.html.erb
index 7e0378d0424..1b95df7fbb5 100644
--- a/app/components/projects/table_component.html.erb
+++ b/app/components/projects/table_component.html.erb
@@ -65,7 +65,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header">
<span>
<% if column.attribute == :favored %>
- <%= render(Primer::Beta::Octicon.new(icon: "star-fill", color: :subtle, ml: 2, "aria-label": I18n.t(:label_favoured))) %>
+ <%= render(Primer::Beta::Octicon.new(icon: "star-fill", color: :subtle, ml: 2, "aria-label": I18n.t(:label_favorite))) %>
<% else %>
<%= column.caption %>
<% end %>
diff --git a/app/models/queries/projects/filters/favored_filter.rb b/app/models/queries/projects/filters/favored_filter.rb
index 8e71a375848..2464f5296aa 100644
--- a/app/models/queries/projects/filters/favored_filter.rb
+++ b/app/models/queries/projects/filters/favored_filter.rb
@@ -26,13 +26,17 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-class Queries::Projects::Filters::FavoredFilter < Queries::Projects::Filters::ProjectFilter
+class Queries::Projects::Filters::FavoriteFilter < Queries::Projects::Filters::ProjectFilter
include Queries::Filters::Shared::BooleanFilter
def self.key
:favored
end
+ def human_name
+ I18n.t(:label_favorite)
+ end
+
def available?
User.current.logged?
end
diff --git a/app/models/queries/projects/selects/favored.rb b/app/models/queries/projects/selects/favored.rb
index 484b73e031e..c71446e49a6 100644
--- a/app/models/queries/projects/selects/favored.rb
+++ b/app/models/queries/projects/selects/favored.rb
@@ -36,6 +36,6 @@ class Queries::Projects::Selects::Favored < Queries::Selects::Base
end
def caption
- I18n.t(:label_favoured)
+ I18n.t(:label_favorite)
end
end
diff --git a/app/views/homescreen/blocks/_projects.html.erb b/app/views/homescreen/blocks/_projects.html.erb
index 1ee05690563..aedc5da2f65 100644
--- a/app/views/homescreen/blocks/_projects.html.erb
+++ b/app/views/homescreen/blocks/_projects.html.erb
@@ -8,7 +8,7 @@
<%= render(Primer::Beta::Octicon.new(
icon: "star-fill",
classes: "op-primer--star-icon",
- "aria-label": I18n.t(:label_favoured))) %>
+ "aria-label": I18n.t(:label_favorite))) %>
<%= link_to project, project_path(project),
title: short_project_description(project),
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 0a37a04c8ed..f5e6f2c845c 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2055,7 +2055,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
label_expanded_click_to_collapse: "Expanded. Click to collapse"
label_f_hour: "%{value} hour"
label_f_hour_plural: "%{value} hours"
- label_favoured: "Favoured"
+ label_favorite: "Favorite"
label_feed_plural: "Feeds"
label_feeds_access_key: "RSS access key"
label_feeds_access_key_created_on: "RSS access key created %{value} ago"
diff --git a/modules/calendar/app/views/calendar/calendars/_form.html.erb b/modules/calendar/app/views/calendar/calendars/_form.html.erb
index f793e220b27..5c2ecbbeb04 100644
--- a/modules/calendar/app/views/calendar/calendars/_form.html.erb
+++ b/modules/calendar/app/views/calendar/calendars/_form.html.erb
@@ -79,7 +79,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag 'query[starred]',
- t(:label_favoured) %>
+ t(:label_favorite) %>
<div class="form--field-container">
<%= styled_check_box_tag 'query[starred]',
'1',
diff --git a/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb b/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb
index 47bcb4e1e54..a009468393e 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb
@@ -79,7 +79,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag 'query[starred]',
- t(:label_favoured) %>
+ t(:label_favorite) %>
<div class="form--field-container">
<%= styled_check_box_tag 'query[starred]',
'1',