From 9269028d057bab80bb7b10909323712fe3443e32 Mon Sep 17 00:00:00 2001 From: ismay Date: Thu, 15 Feb 2024 12:18:56 +0100 Subject: [PATCH] fix: improve text for discard form modal --- i18n/en.pot | 22 ++++++++++++++-------- src/components/Modal/DiscardFormModal.js | 10 +++++++--- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/i18n/en.pot b/i18n/en.pot index 5aa8b5a2..ce1daa3a 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-01-02T14:28:02.554Z\n" -"PO-Revision-Date: 2024-01-02T14:28:02.554Z\n" +"POT-Creation-Date: 2024-02-15T11:19:20.108Z\n" +"PO-Revision-Date: 2024-02-15T11:19:20.108Z\n" msgid "Something went wrong" msgstr "Something went wrong" @@ -189,8 +189,8 @@ msgstr "On/off" msgid "No jobs to display" msgstr "No jobs to display" -msgid "Not scheduled" -msgstr "Not scheduled" +msgid "Now" +msgstr "Now" msgid "Hide jobs" msgstr "Hide jobs" @@ -237,11 +237,17 @@ msgstr "Are you sure you want to delete this job?" msgid "Are you sure you want to delete this queue?" msgstr "Are you sure you want to delete this queue?" -msgid "Are you sure you want to discard your changes?" -msgstr "Are you sure you want to discard your changes?" +msgid "Discard unsaved changes?" +msgstr "Discard unsaved changes?" -msgid "Discard" -msgstr "Discard" +msgid "This form has unsaved changes. Are you sure that you want to discard them?" +msgstr "This form has unsaved changes. Are you sure that you want to discard them?" + +msgid "No, keep changes" +msgstr "No, keep changes" + +msgid "Yes, discard changes" +msgstr "Yes, discard changes" msgid "Error running job" msgstr "Error running job" diff --git a/src/components/Modal/DiscardFormModal.js b/src/components/Modal/DiscardFormModal.js index 2677c523..1984970d 100644 --- a/src/components/Modal/DiscardFormModal.js +++ b/src/components/Modal/DiscardFormModal.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types' import { Button, Modal, + ModalTitle, ModalContent, ModalActions, ButtonStrip, @@ -12,8 +13,11 @@ import history from '../../services/history' const DiscardFormModal = ({ hideModal }) => ( + {i18n.t('Discard unsaved changes?')} - {i18n.t('Are you sure you want to discard your changes?')} + {i18n.t( + 'This form has unsaved changes. Are you sure that you want to discard them?' + )} @@ -22,7 +26,7 @@ const DiscardFormModal = ({ hideModal }) => ( secondary onClick={hideModal} > - {i18n.t('Cancel')} + {i18n.t('No, keep changes')}