Closed Bug 1631116 Opened 4 years ago Closed 4 years ago

Cannot save empty translation

Categories

(Webtools Graveyard :: Pontoon, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

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.

Resetting severity to default of --.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → m
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: