Closed Bug 1382348 Opened 7 years ago Closed 6 years ago

[FTL] Mark placeables in FTL strings

Categories

(Webtools Graveyard :: Pontoon, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mstanke, Unassigned)

References

Details

Attachments

(1 file)

I have started translating the new Firefox Screenshots server.ftl file and noticed, that Pontoon does not allow me to insert placeholders or … just by clicking it in the original strings. See https://pontoon.mozilla.org/cs/firefox-screenshots/server.ftl/?string=168594 and https://pontoon.mozilla.org/cs/firefox-screenshots/server.ftl/?string=168509
Priority: -- → P3
Summary: Pontoon does not recognize placeholders and more in .ftl files → [FTL] Mark placeables in FTL strings
Priority: P3 → P2
Commit pushed to master at https://github.com/mozilla/pontoon

https://github.com/mozilla/pontoon/commit/165070138259cf54bf133c207e711d2eefd86460
Fix bug 1382348: Mark placeables in FTL strings (#782)

Only references to other Messages and External Arguments are detected
as placeables, since FTL gives us this information and we're confident
when to mark them.

The Translate Toolkit placeables logic we use for other formats is not
usable here for various reasons:
* it's written in python and we build the UI in JS
* it yields more false positives since FTL messages contain more makup

It also has other drawbacks, so we should look into replacing it. See
bugs 1251186, 1368602.
Status: NEW → RESOLVED
Closed: 6 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: