From b3867fbd5e40dad4f7abbc6acb2e67960f60e653 Mon Sep 17 00:00:00 2001 From: nataliauvarova Date: Fri, 20 Dec 2024 12:06:21 +0000 Subject: [PATCH] kalmyk markup: fixes --- src/api/i18n.js | 1 + src/components/JoinMarkupsModal/index.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/i18n.js b/src/api/i18n.js index e586d99d..68c77cc7 100644 --- a/src/api/i18n.js +++ b/src/api/i18n.js @@ -949,6 +949,7 @@ export const stringsToTranslate = [ "Updating valency data...", "Upload", "Upload successful", + "Uploading", "uploading audio files of any size, (audio)corpora in ELAN format, texts in Word .odt format", "URL with results of saving data should appear soon after clicking save button in the tasks", "Use linked data", diff --git a/src/components/JoinMarkupsModal/index.js b/src/components/JoinMarkupsModal/index.js index 1e16f45b..d79030a5 100644 --- a/src/components/JoinMarkupsModal/index.js +++ b/src/components/JoinMarkupsModal/index.js @@ -156,7 +156,7 @@ const JoinMarkupsModal = ({ perspectiveId, onClose }) => { for (const group of Object.values(groupDict)) { const ids = group["markups"].map(markup => markup.id); if (ids.includes(firstTextRelation) && ids.includes(secondTextRelation) && group.type === typeRelation) { - setWarnMessage(getTranslation("Such group already exists.")); + setWarnMessage("Such group already exists."); return; } } @@ -173,7 +173,7 @@ const JoinMarkupsModal = ({ perspectiveId, onClose }) => { setSecondTextRelation(null); setTypeRelation(null); - setSuccessMessage(getTranslation("The group was successfully added.")); + setSuccessMessage("The group was successfully added."); }, [firstTextRelation, secondTextRelation, typeRelation, groupDict]); const onDeleteRelation = useCallback(() => { @@ -194,7 +194,7 @@ const JoinMarkupsModal = ({ perspectiveId, onClose }) => { setSelectedRelations([]); setSelectedTotal(0); - setSuccessMessage(getTranslation("The group was successfully deleted.")); + setSuccessMessage("The group was successfully deleted."); }, [groupDict, selectedRelations]); const onRelationSelect = (relation_id, checked) => {