From fbf1bb2dc1e6398686ed5707c88aa24ac9b527b6 Mon Sep 17 00:00:00 2001 From: chriz-uniba <74763324+chriz-uniba@users.noreply.github.com> Date: Mon, 1 Aug 2022 16:00:28 +0200 Subject: [PATCH] global: Fixes wording of error-messages * global: Fixes wording of error-messages. Refs: https://github.com/inveniosoftware/invenio-app-rdm/issues/1707 * Update src/lib/components/Funding/FundingModal.js --- 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..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 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(), });