Cannot save empty translation
Categories
(Webtools Graveyard :: Pontoon, defect)
Tracking
(Not tracked)
People
(Reporter: lasse.liehu, Assigned: mathjazz)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Steps to reproduce:
Tried to save an empty translation for the empty original string https://pontoon.mozilla.org/fi/seamonkey/suite/chrome/common/safeBrowsing.dtd/?string=199889 that probably does not need a non-empty translation for Finnish.
Actual results:
Pressing the Save button seemed to work. It changed to 'Saving' and then seemed to complete without errors but the string was not marked as translated and the translation also did not appear in the suggestions/history list below the editor text field.
Looking at network requests using Firefox devtools, it seems that POST request to https://pontoon.mozilla.org/translations/create/ failed with status 400 and the following JSON:
{"status": false, "message": "Error validating field translation
: "This field is required."\nError validating field original
: "This field is required.""}
Expected results:
The translation would have been saved. Looking at Locales tab, many other languages seem to have empty translations for this string. Even though empty strings are best avoided and I don't actually understand whether an empty original string here is a mistake or not, there are other strings in both Firefox and SeaMonkey where currently either the original string or its translation is intentionally empty.
Comment 1•4 years ago
|
||
Resetting severity to default of --
.
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Updated•3 years ago
|
Description
•