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

Try to use the default record name

Oliver Günthera041f40860b8
diff --git a/app/models/project_custom_field_project_mapping.rb b/app/models/project_custom_field_project_mapping.rb
index 64e45c10282..aaccbe9679c 100644
--- a/app/models/project_custom_field_project_mapping.rb
+++ b/app/models/project_custom_field_project_mapping.rb
@@ -35,7 +35,7 @@ class ProjectCustomFieldProjectMapping < ApplicationRecord
def self.human_attribute_name(attribute, options = {})
{
- project_ids: "#{Project.model_name.human} IDs",
+ project_ids: "#{Project.model_name.human} IDs"
}[attribute] || super
end
end
diff --git a/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb b/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
index 271176027bd..583aa76beba 100644
--- a/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
locals: {
column_headers: [
t("attributes.name"),
- WorkPackage.human_attribute_name(:calendar),
+ Token::ICal.human_attribute_name(:calendar),
WorkPackage.human_attribute_name(:project),
User.human_attribute_name(:created_at),
t("my_account.access_tokens.headers.expiration")
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b3b6091936f..1c46f0b685e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1546,6 +1546,7 @@ en:
one: "Project list"
other: "Project lists"
query: "Custom query"
+ reminder: "Reminder"
role:
one: "Role"
other: "Roles"
diff --git a/lib/open_project/patches/active_record_i18n.rb b/lib/open_project/patches/active_record_i18n.rb
index b9b880c5f98..e9b508d3766 100644
--- a/lib/open_project/patches/active_record_i18n.rb
+++ b/lib/open_project/patches/active_record_i18n.rb
@@ -35,6 +35,8 @@ module ActiveRecord
def self.human_attribute_name(attr, options = {})
attr = attr.to_s.delete_suffix("_id")
+ options[:default] ||= I18n.t("activerecord.models.#{attr}", count: 1, default: nil)
+
if Rails.env.local?
def attr.humanize(*)
raise ArgumentError, "I18n translation missing for attribute #{self}"
diff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.yml
index b9c515ef2f4..cecee63ad41 100644
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@ -76,6 +76,7 @@ en:
models:
recurring_meeting: "Recurring meeting"
structured_meeting: "One-time meeting"
+ meeting: "Meeting"
meeting_agenda_item: "Agenda item"
meeting_agenda: "Agenda"
meeting_minutes: "Minutes"