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
change I18n values to the values used in the Figma template
as-opec833a475ebc
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 3a9997aa909..0f98528ea85 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1809,9 +1809,9 @@ en:include_descriptions:label: "Include descriptions"caption: "This option will add a description column in raw format."- your_work_packages_export: "Your work packages export"- succeeded: "The export has completed successfully."- failed: "The export has failed: %{message}"+ your_work_packages_export: "Work packages are being exported"+ succeeded: "Export completed"+ failed: "An error has occurred while trying to export the work packages: %{message}"format:atom: "Atom"csv: "CSV"diff --git a/modules/job_status/app/components/job_status/dialog/body_component.html.erb b/modules/job_status/app/components/job_status/dialog/body_component.html.erbindex 0dc55f1d710..39bd72742b2 100644--- a/modules/job_status/app/components/job_status/dialog/body_component.html.erb+++ b/modules/job_status/app/components/job_status/dialog/body_component.html.erb@@ -33,16 +33,18 @@endif download_url.present?flex.with_row { render(Primer::Beta::Text.new) { I18n.t('job_status_dialog.download_starts') } }- flex.with_row {- render(Primer::Beta::Link.new(- href: download_url,- target: "_blank",- download: "download",- data: {- "job-status-polling-target": "download"- }- )) { I18n.t('job_status_dialog.click_to_download') }- }+ flex.with_row { render(Primer::Beta::Text.new) {+ I18n.t('job_status_dialog.link_to_download',+ link: (render(Primer::Beta::Link.new(+ href: download_url,+ target: "_blank",+ download: "download",+ data: {+ "job-status-polling-target": "download"+ }+ )) { I18n.t('job_status_dialog.click_here') })+ ).html_safe+ } }endif job_html.present?flex.with_row { job_html.html_safe }diff --git a/modules/job_status/app/components/job_status/dialog/body_component.rb b/modules/job_status/app/components/job_status/dialog/body_component.rbindex 8d6f5d019d9..ed03c6a2eda 100644--- a/modules/job_status/app/components/job_status/dialog/body_component.rb+++ b/modules/job_status/app/components/job_status/dialog/body_component.rb@@ -85,14 +85,6 @@ module JobStatuserror_statuses.include?(job.status) || job_errors?end- def title- return I18n.t("job_status_dialog.generic_messages.not_found") if job.nil?-- return I18n.t("job_status_dialog.errors") if has_error?-- job.payload&.dig("title") || I18n.t("job_status_dialog.title")- end-def iconreturn { icon: :alert, classes: "color-fg-danger" } if job.nil?return { icon: :"x-circle", classes: "color-fg-danger" } if has_error?@@ -100,10 +92,18 @@ module JobStatus{ icon: :"issue-closed", classes: "color-fg-success" } if success_statuses.include?(job.status)end+ def title+ return I18n.t("job_status_dialog.generic_messages.not_found") if job.nil?++ return I18n.t("job_status_dialog.errors") if has_error?++ job.message || job.payload&.dig("title") || I18n.t("job_status_dialog.title")+ end+def message- return "" if job.nil? || job_errors?+ return "" if job.nil? || !pending?- job.message || I18n.t("job_status_dialog.generic_messages.#{job.status}")+ I18n.t("job_status_dialog.generic_messages.#{job.status}")endendenddiff --git a/modules/job_status/config/locales/en.yml b/modules/job_status/config/locales/en.ymlindex a103aa9206f..b3d995d279a 100644--- a/modules/job_status/config/locales/en.yml+++ b/modules/job_status/config/locales/en.yml@@ -5,12 +5,13 @@ en:description: "Listing and status of background jobs."job_status_dialog:download_starts: 'The download should start automatically.'- click_to_download: 'Or click here to download.'+ link_to_download: 'Or, %{link} to download.'+ click_here: 'click here'title: 'Background job status'redirect: 'You are being redirected.'redirect_link: 'Please click here to continue.'redirect_errors: 'Due to these errors, you will not be redirected automatically.'- errors: 'Some errors have occurred'+ errors: 'Something went wrong'generic_messages:not_found: 'This job could not be found.'in_queue: 'The job has been queued and will be processed shortly.'