[Translate.Next] Format Fluent strings in string list and tools as simple strings
Categories
(Webtools Graveyard :: Pontoon, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: adrian, Assigned: adrian)
References
Details
(Whiteboard: tn-testing-2)
Attachments
(1 file)
Currently we display Fluent messages raw, with the ID. That is fine in the Editor, but for the Entities list, metadata and machinery, we should instead use a truncated version of the string, without the ID part (l10n-id =
).
Comment 1•6 years ago
|
||
TBH, I don't think that ID stripping is what we need here. We rather need getSimplePreview ported from https://github.com/mozilla/pontoon/blob/ed912661961511b9ecf46cd7cc59238562547ef4/pontoon/base/static/js/fluent_interface.js#L901, which also does a bunch of attribute detection etc.
Comment 2•6 years ago
|
||
Lowering priority, since this is not needed for Stage 1 testing.
Changing summary to reflect Comment 1.
Comment 3•6 years ago
|
||
Keeping summary and Priority in line with bug 1528282.
Comment 4•6 years ago
|
||
I've updated my PR at https://github.com/projectfluent/fluent.js/pull/172 to get the APIs we have in python onto fluent.syntax in js land. I'm expecting them to be useful for this.
Alongside: How would we do the switch between Fluent and not? Based on resource path extension or is there something better?
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
adngdb merged PR #1283: "Fix bug 1528178 - Format Fluent strings in string list and tools as simple strings" in 9a525a8.
Updated•3 years ago
|
Description
•