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
Use i18n for the dialog title and main button
Klaus Zanders1e1abaaead72
diff --git a/modules/costs/app/components/time_entries/entry_dialog_component.html.erb b/modules/costs/app/components/time_entries/entry_dialog_component.html.erbindex 393559baa98..b3a7b7d9734 100644--- a/modules/costs/app/components/time_entries/entry_dialog_component.html.erb+++ b/modules/costs/app/components/time_entries/entry_dialog_component.html.erb@@ -1,10 +1,10 @@-<%= render(Primer::Alpha::Dialog.new(title: 'Log Time', size: :large, id: MODAL_ID, data: { "controller" => "time-entry", "application-target" => "dynamic" })) do |d| %>+<%= render(Primer::Alpha::Dialog.new(title: t('caption_log_time_dialog'), size: :large, id: MODAL_ID, data: { "controller" => "time-entry", "application-target" => "dynamic" })) do |d| %><% d.with_header(variant: :large, mb: 3) %><% d.with_body do %><%= render(TimeEntries::TimeEntryFormComponent.new(time_entry: time_entry)) %><% end %><% d.with_footer(variant: :large) do %><%= render(Primer::ButtonComponent.new(data: { 'close-dialog-id': "time-entry-dialog" })) { I18n.t("button_cancel") } %>- <%= render(Primer::ButtonComponent.new(scheme: :primary, type: :submit, test_selector: "create-time-entry-button", form: 'time-entry-form')) { "Create Time Entry" } %>+ <%= render(Primer::ButtonComponent.new(scheme: :primary, type: :submit, test_selector: "create-time-entry-button", form: 'time-entry-form')) { t('button_log_time') } %><% end %><% end %>diff --git a/modules/costs/config/locales/en.yml b/modules/costs/config/locales/en.ymlindex f6655905efb..ddaea6a45a3 100644--- a/modules/costs/config/locales/en.yml+++ b/modules/costs/config/locales/en.yml@@ -89,6 +89,7 @@ en:button_add_rate: "Add rate"button_log_costs: "Log unit costs"+ button_log_time: "Log"caption_booked_on_project: "Booked on project"caption_default: "Default"@@ -101,6 +102,7 @@ en:caption_save_rate: "Save rate"caption_set_rate: "Set current rate"caption_show_locked: "Show locked types"+ caption_log_time_dialog: "Log time"description_date_for_new_rate: "Date for new rate"