Skip to content

Commit

Permalink
kalmyk markup: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliauvarova committed Dec 20, 2024
1 parent f84329d commit b3867fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/api/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/components/JoinMarkupsModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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(() => {
Expand All @@ -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) => {
Expand Down

0 comments on commit b3867fb

Please sign in to comment.