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

Move Meeting related translations to the meeting module, remove unnecessary count on translation.

Dombi Attila5dacdb425b3c
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 202bba80efd..4ed6c5312a5 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1171,7 +1171,6 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
global_role: "Global role"
group: "Group"
member: "Member"
- meeting_section: "Section"
news: "News"
notification:
one: "Notification"
@@ -1227,18 +1226,6 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
other: "<i>%{count} hours</i>"
updated: "changed from %{old_value} to %{value}"
logged_for: "Logged for"
- meeting_agenda_item:
- duration:
- added: "set to %{value}"
- added_html: "set to <i>%{value}</i>"
- removed: "removed"
- updated: "changed from %{old_value} to %{value}"
- updated_html: "changed from <i>%{old_value}</i> to <i>%{value}</i>"
- position:
- updated: "reordered"
- work_package:
- updated: "changed from %{old_value} to %{value}"
- updated_html: "changed from <i>%{old_value}</i> to <i>%{value}</i>"
filter:
changeset: "Changesets"
message: "Forums"
diff --git a/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erb
index 1218d656e05..9fbe7916d53 100644
--- a/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erb
@@ -6,7 +6,7 @@
t("button_add")
end
component.with_item(
- label: t("activerecord.models.meeting_agenda_item", count: 1),
+ label: t("activerecord.models.meeting_agenda_item"),
tag: :a,
content_arguments: {
href: new_meeting_agenda_item_path(@meeting, type: "simple", meeting_section_id: @meeting_section&.id),
@@ -14,7 +14,7 @@
}
)
component.with_item(
- label: t("activerecord.models.work_package", count: 1),
+ label: t("activerecord.models.work_package"),
tag: :a,
content_arguments: {
href: new_meeting_agenda_item_path(@meeting, type: "work_package", meeting_section_id: @meeting_section&.id),
@@ -23,7 +23,7 @@
)
unless @meeting_section
component.with_item(
- label: t("activerecord.models.meeting_section", count: 1),
+ label: t("activerecord.models.meeting_section"),
tag: :a,
content_arguments: {
href: meeting_sections_path(@meeting),
diff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.yml
index e895b0aea35..5a8a0ed125b 100644
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@ -69,10 +69,24 @@ en:
meeting_agenda_item: "Agenda item"
meeting_agenda: "Agenda"
meeting_minutes: "Minutes"
+ meeting_section: "Section"
activity:
filter:
meeting: "Meetings"
+ item:
+ meeting_agenda_item:
+ duration:
+ added: "set to %{value}"
+ added_html: "set to <i>%{value}</i>"
+ removed: "removed"
+ updated: "changed from %{old_value} to %{value}"
+ updated_html: "changed from <i>%{old_value}</i> to <i>%{value}</i>"
+ position:
+ updated: "reordered"
+ work_package:
+ updated: "changed from %{old_value} to %{value}"
+ updated_html: "changed from <i>%{old_value}</i> to <i>%{value}</i>"
description_attended: "attended"
description_invite: "invited"