Problem:
It is possible to add a second Gloss in the same language to a Sense. The edit then overwrites the existing Gloss. It should not be possible to add a second Gloss for the same language.
Screenshot:
How this looks for the spelling variant check on Lemma and Representation:
BDD
GIVEN a Sense has a Gloss in language A
AND I try to add another Gloss in language A
THEN the language field is marked in red
AND a a message appears saying "It is not possible to enter multiple Glosses with the same language."
AND the "publish" link is grayed out
Acceptance criteria:
- I can not store a second Gloss for the same language on the same Sense
Notes:
- Also check this for the API.
- The desired behavior is already in place for spelling variant of Lemma and Representation.