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

Adapt text

Oliver Günthera7cbbeae55ee
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index f87d64a8382..decf33e2bb4 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -756,6 +756,7 @@ en:
last_day: "Last day"
text_are_you_sure: "Are you sure?"
+ text_are_you_sure_to_cancel: "You have unsaved changes on this page. Are you sure you want to discard them?"
breadcrumb: "Breadcrumb"
text_data_lost: "All entered data will be lost."
text_user_wrote: "%{value} wrote:"
diff --git a/frontend/src/stimulus/controllers/beforeunload.controller.ts b/frontend/src/stimulus/controllers/beforeunload.controller.ts
index 68cb99526bd..8c3fec5963b 100644
--- a/frontend/src/stimulus/controllers/beforeunload.controller.ts
+++ b/frontend/src/stimulus/controllers/beforeunload.controller.ts
@@ -46,7 +46,7 @@ export class BeforeunloadController extends ApplicationController {
}
// eslint-disable-next-line no-alert
- if (window.confirm(I18n.t('js.work_packages.confirm_edit_cancel'))) {
+ if (window.confirm(I18n.t('js.text_are_you_sure_to_cancel'))) {
return;
}