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

added missing translations

Jonas Jabari5432422d7ce1
diff --git a/modules/meeting/app/components/meeting_sections/show_component.html.erb b/modules/meeting/app/components/meeting_sections/show_component.html.erb
index af760927a6a..a5db188bd6c 100644
--- a/modules/meeting/app/components/meeting_sections/show_component.html.erb
+++ b/modules/meeting/app/components/meeting_sections/show_component.html.erb
@@ -10,7 +10,7 @@
component.with_row(data: { 'empty-list-item': true }) do
flex_layout(align_items: :center, justify_content: :space_between) do |empty_list_container|
empty_list_container.with_column(mr: 2) do
- render(Primer::Beta::Text.new(color: :subtle)) { "Drag items here or create a new one" } # TODO: i18n
+ render(Primer::Beta::Text.new(color: :subtle)) { t("meeting_section.empty_text") }
end
empty_list_container.with_column do
render(MeetingAgendaItems::NewButtonComponent.new(meeting: @meeting, meeting_section: @meeting_section))
diff --git a/modules/meeting/app/controllers/meeting_sections_controller.rb b/modules/meeting/app/controllers/meeting_sections_controller.rb
index 3c5e7ca744d..e5c58a9759d 100644
--- a/modules/meeting/app/controllers/meeting_sections_controller.rb
+++ b/modules/meeting/app/controllers/meeting_sections_controller.rb
@@ -62,7 +62,7 @@ class MeetingSectionsController < ApplicationController
.call(
{
meeting_id: @meeting.id,
- title: "New Section"
+ title: t("meeting_section.default_title")
}
)
diff --git a/modules/meeting/app/models/meeting_section.rb b/modules/meeting/app/models/meeting_section.rb
index 3ac9fa419df..1f038cc904c 100644
--- a/modules/meeting/app/models/meeting_section.rb
+++ b/modules/meeting/app/models/meeting_section.rb
@@ -44,16 +44,16 @@ class MeetingSection < ApplicationRecord
def set_default_title
if title.blank?
- self.title = "Untitled" # TODO: I18n
+ self.title = I18n.t("meeting_section.untitled_title")
end
end
def has_default_title?
- title == "New Section" # TODO: I18n
+ title == I18n.t("meeting_section.default_title")
end
def untitled?
- title == "Untitled" # TODO: I18n
+ title == I18n.t("meeting_section.untitled_title")
end
def editable?
diff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.yml
index 2064001e8f6..f5971fb325f 100644
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@ -59,6 +59,8 @@ en:
duration_in_minutes: "min"
description: "Notes"
presenter: "Presenter"
+ meeting_section:
+ title: "Title"
errors:
messages:
invalid_time_format: "is not a valid time. Required format: HH:MM"
@@ -140,6 +142,11 @@ en:
structured_text_copy: "Copying a meeting will currently not copy the associated meeting agenda items, just the details"
copied: "Copied from Meeting #%{id}"
+ meeting_section:
+ default_title: "New section"
+ untitled_title: "Untitled"
+ empty_text: "Drag items here or create a new one"
+
notice_successful_notification: "Notification sent successfully"
notice_timezone_missing: No time zone is set and %{zone} is assumed. To choose your time zone, please click here.