From c26871bd2c1b4404c51d86d865a528434ad5570d Mon Sep 17 00:00:00 2001 From: "Zeller, Christina" Date: Mon, 1 Aug 2022 09:22:12 +0200 Subject: [PATCH 1/2] global: Fixes wording of error-messages. Refs: https://github.com/inveniosoftware/invenio-app-rdm/issues/1707 --- src/lib/components/FormFeedback.js | 2 +- src/lib/components/Funding/FundingModal.js | 2 +- src/lib/components/PublishButton/SubmitReviewModal.js | 8 ++------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/lib/components/FormFeedback.js b/src/lib/components/FormFeedback.js index 301b945d..c71e7c89 100644 --- a/src/lib/components/FormFeedback.js +++ b/src/lib/components/FormFeedback.js @@ -123,7 +123,7 @@ const ACTIONS = { [FILE_IMPORT_FAILED]: { feedback: "negative", message: i18next.t( - "Oops, something went wrong! Importing files from the previous draft version failed. Please try again. If the problem persists, contact user support." + "Oops, something went wrong! Importing files from the previous version failed. Please try again. If the problem persists, contact user support." ), }, }; diff --git a/src/lib/components/Funding/FundingModal.js b/src/lib/components/Funding/FundingModal.js index bc0a9b08..67f9ce41 100644 --- a/src/lib/components/Funding/FundingModal.js +++ b/src/lib/components/Funding/FundingModal.js @@ -79,7 +79,7 @@ const CustomFundingSchema = Yup.object().shape({ }, }), url: Yup.string() - .url(i18next.t("Url must be a valid url.")) + .url(i18next.t("Url must be valid.")) .test({ name: "validateUrlDependencies", message: i18next.t("Url must be set alongside title and number."), diff --git a/src/lib/components/PublishButton/SubmitReviewModal.js b/src/lib/components/PublishButton/SubmitReviewModal.js index a198e92e..7e84a341 100644 --- a/src/lib/components/PublishButton/SubmitReviewModal.js +++ b/src/lib/components/PublishButton/SubmitReviewModal.js @@ -16,12 +16,8 @@ import * as Yup from "yup"; export class SubmitReviewModal extends Component { ConfirmSubmitReviewSchema = Yup.object({ - acceptAccessToRecord: Yup.string().required( - i18next.t("You must click and accept this.") - ), - acceptAfterPublishRecord: Yup.string().required( - i18next.t("You must click and accept this.") - ), + acceptAccessToRecord: Yup.string().required(i18next.t("You must accept this.")), + acceptAfterPublishRecord: Yup.string().required(i18next.t("You must accept this.")), reviewComment: Yup.string(), }); From f4a49fc663b46258a509db4fdcd1bd363f626f7a Mon Sep 17 00:00:00 2001 From: Lars Holm Nielsen Date: Mon, 1 Aug 2022 15:59:57 +0200 Subject: [PATCH 2/2] Update src/lib/components/Funding/FundingModal.js --- src/lib/components/Funding/FundingModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/Funding/FundingModal.js b/src/lib/components/Funding/FundingModal.js index 67f9ce41..973b1823 100644 --- a/src/lib/components/Funding/FundingModal.js +++ b/src/lib/components/Funding/FundingModal.js @@ -79,7 +79,7 @@ const CustomFundingSchema = Yup.object().shape({ }, }), url: Yup.string() - .url(i18next.t("Url must be valid.")) + .url(i18next.t("URL must be valid.")) .test({ name: "validateUrlDependencies", message: i18next.t("Url must be set alongside title and number."),