mathjazz / pontoon

In-place localization tool
https://pontoon.mozilla.org/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

[FTL] Fix display of Translations with Errors #1227

Open mathjazz opened 4 years ago

mathjazz commented 4 years ago

This issue was created automatically by a script.

Bug 1618920

Bug Reporter: @mathjazz CC: @adngdb See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1686402

Bug 1584180 forces checks on pretranslations, which greatly increases the probability of Translations with Errors getting into Pontoon (Pontoon blocks saving Translations with Errors when submitted via Translate Workbench).

Fluent Translations with Errors are sometimes not displayed at all (the editor is empty or contains the previous translations) or are displayed without the corresponding error message. We should fix that.

mathjazz commented 4 years ago

Comment Author: @adngdb

Steps to reproduce

  1. Sync a Fluent project (for example, https://github.com/mozilla-l10n/pontoon-ftl/ ).
  2. Save a normal translation through the Translate page.
  3. In the database, update the translation you just made to make it invalid (for example, change the Fluent ID in the message).
  4. Go back to the Translate page and open that translation.

Expected result

The translation shows up in the Editor and an error is displayed, explaining what is wrong about that translation.

Actual result

No errors show up, sometimes even the translation doesn't show up.