-
Task
-
Resolution: Fixed
-
None
-
Medium
-
Don't send segments with empty targets to t5memory on update in editor
-
Emptyshow more show less
Problem
On saving segments with empty target it can happen that you get an error 500
Error whilst saving or reading data. Please contact our support team!
Server Message: 500 Internal Server Error:
Error: Missing target text
how this error can be reproduced:
take a segment, which has already an entry in T5Memory. Then simply delete the complete target and save the segment.
What was the background why someone wanted to save a segment with an empty target. Root problem was, that segmentation was not very good. There was a sentence which was splitted in two part like (see attached file TRANSLATE-5047.xml
):
<segment>nachdem es ausführlich überprüft worden</segment> <segment>ist</segment>
On translation, the complete translation was assigned to the first segment "after it has been thoroughly checked" and then the second segment was wanted to be empty, like this:
But if there is already an entry for the second segment in the TM, the above mentioned error occurs, when deleting target of the second segment.
Solution
Either it should be possible to write entries with empty target-language into T5Memory.
Or it should be possible to "ignore" complete segments in T5.