Closed Bug 1426835 Opened 8 years ago Closed 8 years ago

[FTL] HTML markup missing when localizing Test Pilot Website

Categories

(Webtools Graveyard :: Pontoon, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: selim, Assigned: mathjazz)

Details

Attachments

(2 files)

Pontoon has been showing rendered versions HTML-coded strings for the last few days. (See the screenshot for an example.) It's not possible to see and place the corect HTML tags unless you use the "copy" button first.
(In reply to Francesco Lodolo [:flod] from comment #1) > I assume this is a regression from bug 1392255. Actually, bug 1382348. mozilla.org still works correctly, so it's FTL only https://pontoon.mozilla.org/tr/mozillaorg/all-resources/?string=7867 And I notice that HTML fragments are placeables?
Thanks for reporting Selim! The broken layout is likely a regression from bug 1392255. We've added a bunch of changes after it landed, so I'd like to provide a fix instead of reverting. Let me dig into it. As for the HTML markup in FTL source strings, we don't support that yet: https://bugzilla.mozilla.org/show_bug.cgi?id=1382348#c2 We should add it once we start using DOM Overlays in FTL (should happen pretty soon).
Assignee: nobody → m
Priority: -- → P2
Confirmed this is a regression from bug 1392255 and provided a fix. I also realized we might be talking about different thing regarding the HTML markup. It's not even visible ATM for FTL strings and this patch fixes it. This is much more serious than marking it up like placeables, which is coming later. Raising priority to P1. This is deployed to stage for testing. I'd appreciate if one of you could have a look: https://mozilla-pontoon-staging.herokuapp.com/tr/test-pilot-website/experiments.ftl/?string=159482 I also checked some other FTL files and so far it seems to be working ok.
Priority: P2 → P1
It seems to work correctly on stage. Not sure I understand if the code covers all cases, i.e. if there could be HTML code when markPlaceables is false. When is markPlaceables false in serializePlaceables?
Yes, it seems fine on stage. What does the "FTL" button supposed to do? For me, clicking on it places a "minvidIntroduction = " text on the translation field and nothing else. I'm not sure if it's related to this bug though.
(In reply to Selim Şumlu from comment #7) > Yes, it seems fine on stage. > > What does the "FTL" button supposed to do? For me, clicking on it places a > "minvidIntroduction = " text on the translation field and nothing else. I'm > not sure if it's related to this bug though. Switch to advanced/source mode https://mozilla-l10n.github.io/localizer-documentation/tools/pontoon/ui.html#ftl-fluent-files
(In reply to Francesco Lodolo [:flod] from comment #6) > It seems to work correctly on stage. > > Not sure I understand if the code covers all cases, i.e. if there could be > HTML code when markPlaceables is false. When is markPlaceables false in > serializePlaceables? We could have HTML code when markPlaceables is false, but that's either in rich FTL editor (we want to show HTML) or places like String list and History tab, where HTML is escaped in translate.js. For that very reason I added a TODO to make the code more robust and easier to understand.
Status: NEW → RESOLVED
Closed: 8 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

Creator:
Created:
Updated:
Size: