Closed Bug 613064 Opened 10 years ago Closed 4 years ago

[l20n] expose an API that will enable dynamic generation of LOL objects and injecting entities into the l20n context

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: zbraniecki, Unassigned)

References

Details

It would be valuable to be able to generate new LOL structures and pass them to the context from inside of the XUL document JS.

We should also be able to just add a single entity into the context.

Initial proposals for API:
 
var lol = new document.l10n.LOL();
lol.addEntity('id', 'value');
document.l10n.addReference(lol);

document.l10n.addEntity('id', 'value');
Blocks: 595812
How would this work for non-simple values?

I'm wondering if it's not good enough to just allow parsing plain text or data uris.
Component: DOM: Mozilla Extensions → DOM
Seven years later, we're making another attempt to refactor our l10n layer.

The new tracking bug is bug 1365426 and I'll mark the previous effort as "INCOMPLETE".
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.